public class CsvRecordParser extends Object implements RecordMarshaller, RecordUnmarshaller
RecordMarshaller and RecordUnmarshaller implementation 
 for CSV formatted records.| Constructor and Description | 
|---|
CsvRecordParser()
Constructs a new CsvRecordParser. 
 | 
CsvRecordParser(CsvParserConfiguration config)
Constructs a new CsvRecordParser. 
 | 
| 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 CSV formatted record. 
 | 
Object | 
unmarshal(String text)
Unmarshals a single record. 
 | 
public CsvRecordParser()
public CsvRecordParser(CsvParserConfiguration config)
config - the CsvParserConfigurationpublic Object unmarshal(String text) throws RecordIOException
RecordUnmarshallerunmarshal in interface RecordUnmarshallertext - the record text to unmarshalRecordIOException - if the record is malformed and cannot be parsedpublic String marshal(Object record)
RecordMarshallermarshal in interface RecordMarshallerrecord - the record object to marshal