BeanIO 2.0.4

org.beanio.stream.delimited
Class DelimitedRecordParser

java.lang.Object
  extended by org.beanio.stream.delimited.DelimitedRecordParser
All Implemented Interfaces:
RecordMarshaller, RecordUnmarshaller

public class DelimitedRecordParser
extends Object
implements RecordUnmarshaller, RecordMarshaller

A combined RecordMarshaller and RecordUnmarshaller implementation for delimited formatted records.

Since:
2.0
Author:
Kevin Seim

Constructor Summary
DelimitedRecordParser()
          Constructs a new DelimitedRecordParser.
DelimitedRecordParser(DelimitedParserConfiguration config)
          Constructs a new DelimitedRecordParser.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelimitedRecordParser

public DelimitedRecordParser()
Constructs a new DelimitedRecordParser.


DelimitedRecordParser

public DelimitedRecordParser(DelimitedParserConfiguration config)
Constructs a new DelimitedRecordParser.

Parameters:
config - the parser configuration settings
Method Detail

unmarshal

public String[] unmarshal(String text)
Description copied from interface: RecordUnmarshaller
Unmarshals a single record.

Specified by:
unmarshal in interface RecordUnmarshaller
Parameters:
text - the record text to unmarshal
Returns:
the unmarshalled record object

marshal

public String marshal(Object record)
Description copied from interface: RecordMarshaller
Marshals a single record object to a String.

Specified by:
marshal in interface RecordMarshaller
Parameters:
record - the record object to marshal
Returns:
the marshalled record text

marshal

public String marshal(String[] record)
Marshals a String array into a delimited record.

Parameters:
record - the String[] to marshal
Returns:
the formatted record text

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim