Example #1
0
 @Override
 public void terminateObject(ObjectReference di, BonaCustom obj) throws IOException {
   if (cfg.objectEnd != null && cfg.objectEnd.length() > 0) {
     super.addRawData(cfg.objectEnd);
     recordStart = true;
   }
 }
Example #2
0
 @Override
 public void terminateMap() throws IOException {
   if (cfg.mapEnd != null && cfg.mapEnd.length() > 0) {
     super.addRawData(cfg.mapEnd);
     recordStart = true;
   }
 }
Example #3
0
 @Override
 public void startMap(FieldDefinition di, int currentMembers) throws IOException {
   if (cfg.mapStart != null && cfg.mapStart.length() > 0) {
     super.addRawData(cfg.mapStart);
     recordStart = true;
   }
 }
Example #4
0
 @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;
   }
 }
Example #5
0
 // boolean
 @Override
 public void addField(MiscElementaryDataItem di, boolean b) throws IOException {
   writeSeparator();
   super.addRawData(b ? cfg.booleanTrue : cfg.booleanFalse);
 }