BeanIO 2.0.4

org.beanio.stream.json
Class JsonRecordUnmarshaller

java.lang.Object
  extended by org.beanio.stream.json.JsonReaderSupport
      extended by org.beanio.stream.json.JsonRecordUnmarshaller
All Implemented Interfaces:
RecordUnmarshaller

public class JsonRecordUnmarshaller
extends JsonReaderSupport
implements RecordUnmarshaller

A RecordUnmarshaller implementation for JSON formatted records.

Since:
2.0
Author:
Kevin Seim
See Also:
JsonRecordParserFactory

Field Summary
 
Fields inherited from class org.beanio.stream.json.JsonReaderSupport
eof, in
 
Constructor Summary
JsonRecordUnmarshaller()
          Constructs a new JsonRecordUnmarshaller.
 
Method Summary
 Map<String,Object> unmarshal(String text)
          Unmarshals a single record.
 
Methods inherited from class org.beanio.stream.json.JsonReaderSupport
isWhitespace, parseValue, readArray, readObject, readString, readUnicode, setReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonRecordUnmarshaller

public JsonRecordUnmarshaller()
Constructs a new JsonRecordUnmarshaller.

Method Detail

unmarshal

public Map<String,Object> unmarshal(String text)
                             throws RecordIOException
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
Throws:
RecordIOException - if the record is malformed and cannot be parsed

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim