public class DelimitedRecordParser extends Object implements RecordUnmarshaller, RecordMarshaller
RecordMarshaller
and RecordUnmarshaller
implementation
for delimited formatted records.Constructor and Description |
---|
DelimitedRecordParser()
Constructs a new DelimitedRecordParser.
|
DelimitedRecordParser(DelimitedParserConfiguration config)
Constructs a new DelimitedRecordParser.
|
Modifier and Type | Method and Description |
---|---|
String |
marshal(Object record)
Marshals a single record object to a String.
|
String |
marshal(String[] record)
Marshals a String array into a delimited record.
|
String[] |
unmarshal(String text)
Unmarshals a single record.
|
public DelimitedRecordParser()
public DelimitedRecordParser(DelimitedParserConfiguration config)
config
- the parser configuration settingspublic String[] 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