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, writeRecord
createHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, popIteration, pushIteration, setLocal
public FixedLengthMarshallingContext()
public void clear()
MarshallingContext
clear
in class MarshallingContext
public 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()
MarshallingContext
RecordWriter
when
MarshallingContext.writeRecord()
is called.getRecordObject
in class MarshallingContext