@Override public void endCollection() { try { if(level != null && null == level.getPreviousLevel()) { writer.write(']'); endCallback(); } else { if(level != null && level.isCollection() && !level.isEmptyCollection()) { writer.write(']'); } } level.setCollection(false); } catch (IOException e) { throw XMLMarshalException.marshalException(e); } }
protected void writeListSeparator() throws IOException{ super.writeListSeparator(); writer.write(' '); }
@Override public void startCollection() { if(null == level) { try { super.startCollection(); writer.write(' '); } catch(IOException e) { throw XMLMarshalException.marshalException(e); } } else { super.startCollection(); } } @Override
@Override public void startCollection() { if(null == level) { try { super.startCollection(); writer.write(' '); } catch(IOException e) { throw XMLMarshalException.marshalException(e); } } else { super.startCollection(); } } @Override
protected void closeComplex() throws IOException { writer.write('}'); }
protected void writeListSeparator() throws IOException{ writer.write(','); }
@Override public void endCollection() { try { writer.write(' '); super.endCollection(); } catch(IOException e) { throw XMLMarshalException.marshalException(e); } }
@Override protected void closeComplex() throws IOException { writer.writeCR(); for (int x = 0; x < numberOfTabs; x++) { writeValue(tab(), false); } writer.write('}'); }
protected void writeListSeparator() throws IOException{ writer.write(','); }
protected void writeListSeparator() throws IOException{ super.writeListSeparator(); writer.write(' '); }
protected void closeComplex() throws IOException { writer.write('}'); }
protected void writeSeparator() throws IOException{ writer.write(Constants.COLON); }
@Override public void endCollection() { try { writer.write(' '); super.endCollection(); } catch(IOException e) { throw XMLMarshalException.marshalException(e); } }
@Override protected void closeComplex() throws IOException { writer.writeCR(); for (int x = 0; x < numberOfTabs; x++) { writeValue(tab(), false); } writer.write('}'); }