@Override public void terminateObject(ObjectReference di, BonaCustom obj) throws IOException { if (cfg.objectEnd != null && cfg.objectEnd.length() > 0) { super.addRawData(cfg.objectEnd); recordStart = true; } }
@Override public void startMap(FieldDefinition di, int currentMembers) throws IOException { if (cfg.mapStart != null && cfg.mapStart.length() > 0) { super.addRawData(cfg.mapStart); recordStart = true; } }
@Override public void terminateMap() throws IOException { if (cfg.mapEnd != null && cfg.mapEnd.length() > 0) { super.addRawData(cfg.mapEnd); recordStart = true; } }
@Override public void startArray(FieldDefinition di, int currentMembers, int sizeOfElement) throws IOException { if (cfg.arrayStart != null && cfg.arrayStart.length() > 0) { super.addRawData(cfg.arrayStart); recordStart = true; } }
@Override public void addField(ObjectReference di, Object obj) throws IOException { writeSeparator(); if (obj != null) { addRawData(stringQuote); super.addField(di, obj); addRawData(stringQuote); } }
// raw @Override public void addField(BinaryElementaryDataItem di, byte[] b) throws IOException { writeSeparator(); if (b != null) { addRawData(stringQuote); super.addField(di, b); addRawData(stringQuote); } }
// UUID @Override public void addField(MiscElementaryDataItem di, UUID n) throws IOException { writeSeparator(); if (n != null) { addRawData(stringQuote); super.addField(di, n); addRawData(stringQuote); } }
// boolean @Override public void addField(MiscElementaryDataItem di, boolean b) throws IOException { writeSeparator(); super.addRawData(b ? cfg.booleanTrue : cfg.booleanFalse); }
// long @Override public void addField(BasicNumericElementaryDataItem di, long n) throws IOException { writeSeparator(); super.addField(di, n); }