public class FixedLengthMarshallingContext extends MarshallingContext
MarshallingContext for a fixed length formatted stream.MARSHALLING, UNMARSHALLING| Constructor and Description |
|---|
FixedLengthMarshallingContext()
Constructs a new FixedLengthMarshallingContext.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear is invoked after each bean object (record or group) is marshalled.
|
Object |
getRecordObject()
Returns the record object to pass to the
RecordWriter when
MarshallingContext.writeRecord() is called. |
void |
setFieldText(int position,
String text,
boolean commit)
Inserts field text into the record being marshalled.
|
getBean, getComponentName, getMode, getRecordWriter, setBean, setComponentName, setRecordWriter, toArray, toDocument, toList, writeRecordcreateHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, popIteration, pushIteration, setLocalpublic FixedLengthMarshallingContext()
public void clear()
MarshallingContextclear in class MarshallingContextpublic void setFieldText(int position,
String text,
boolean commit)
position - the position of the field in the recordtext - the field text to insertcommit - true to commit the current field length, or false
if the field is optional and should not extend the record length
unless a subsequent field is appended to the recordpublic Object getRecordObject()
MarshallingContextRecordWriter when
MarshallingContext.writeRecord() is called.getRecordObject in class MarshallingContext