public class FixedLengthRecordParser extends Object implements RecordMarshaller, RecordUnmarshaller
RecordMarshaller
and RecordUnmarshaller
implementation
for fixed length formatted records.Constructor and Description |
---|
FixedLengthRecordParser()
Constructs a new FixedLengthRecordParser.
|
Modifier and Type | Method and Description |
---|---|
String |
marshal(Object record)
Marshals a single record object to a String.
|
String |
marshal(String record)
Marshals a single fixed length record.
|
Object |
unmarshal(String text)
Unmarshals a single record.
|
public FixedLengthRecordParser()
public Object unmarshal(String text)
RecordUnmarshaller
unmarshal
in interface RecordUnmarshaller
text
- the record text to unmarshalpublic String marshal(Object record)
RecordMarshaller
marshal
in interface RecordMarshaller
record
- the record object to marshal