|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.stream.csv.CsvRecordParser
public class CsvRecordParser
'
A combined RecordMarshaller
and RecordUnmarshaller
implementation
for CSV formatted records.
Constructor Summary | |
---|---|
CsvRecordParser()
Constructs a new CsvRecordParser. |
|
CsvRecordParser(CsvParserConfiguration config)
Constructs a new CsvRecordParser. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvRecordParser()
public CsvRecordParser(CsvParserConfiguration config)
config
- the CsvParserConfiguration
Method Detail |
---|
public Object unmarshal(String text) throws RecordIOException
RecordUnmarshaller
unmarshal
in interface RecordUnmarshaller
text
- the record text to unmarshal
RecordIOException
- if the record is malformed and cannot be parsedpublic String marshal(Object record)
RecordMarshaller
marshal
in interface RecordMarshaller
record
- the record object to marshal
public String marshal(String[] record)
record
- the String[] to marshal
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |