protected void viewRecordField(DDFField poField){
  DDFFieldDefinition poFieldDefn=poField.getFieldDefn();
  Debug.output("    Field " + poFieldDefn.getName() + ": "+ poFieldDefn.getDescription());
  byte[] pachFieldData=poField.getData();
  int nBytesRemaining=poField.getDataSize();
  for (int iRepeat=0; iRepeat < poField.getRepeatCount(); iRepeat++) {
    if (iRepeat > 0) {
      Debug.output("Repeating (" + iRepeat + ")...");
    }
    for (int iSF=0; iSF < poFieldDefn.getSubfieldCount(); iSF++) {
      DDFSubfieldDefinition poSFDefn=poFieldDefn.getSubfieldDefn(iSF);
      int nBytesConsumed=viewSubfield(poSFDefn,pachFieldData,nBytesRemaining);
      nBytesRemaining-=nBytesConsumed;
      byte[] tempData=new byte[pachFieldData.length - nBytesConsumed];
      System.arraycopy(pachFieldData,nBytesConsumed,tempData,0,tempData.length);
      pachFieldData=tempData;
    }
  }
}

protected void viewRecordField ( DDFField poField ) { DDFFieldDefinition poFieldDefn = poField . getFieldDefn ( ) ; Debug . output ( "    Field " + poFieldDefn . getName ( ) + ": " + poFieldDefn . getDescription ( ) ) ; byte [ ] pachFieldData = poField . getData ( ) ; int nBytesRemaining = poField . getDataSize ( ) ; for ( int iRepeat = 0 ; iRepeat < poField . getRepeatCount ( ) ; iRepeat ++ ) { if ( iRepeat > 0 ) { Debug . output ( "Repeating (" + iRepeat + ")..." ) ; } for ( int iSF = 0 ; iSF < poFieldDefn . getSubfieldCount ( ) ; iSF ++ ) { DDFSubfieldDefinition poSFDefn = poFieldDefn . getSubfieldDefn ( iSF ) ; int nBytesConsumed = viewSubfield ( poSFDefn , pachFieldData , nBytesRemaining ) ; nBytesRemaining -= nBytesConsumed ; byte [ ] tempData = new byte [ pachFieldData . length - nBytesConsumed ] ; System . arraycopy ( pachFieldData , nBytesConsumed , tempData , 0 , tempData . length ) ; pachFieldData = tempData ; } } }
dump the contents of a field instance in a record .
