org.beanio.stream.json
Class JsonRecordUnmarshaller
java.lang.Object
org.beanio.stream.json.JsonReaderSupport
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonRecordUnmarshaller
public JsonRecordUnmarshaller()
- Constructs a new JsonRecordUnmarshaller.
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
Copyright © 2010-2013 Kevin Seim