Package 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
ARecordUnmarshaller
implementation for JSON formatted records.- Since:
- 2.0
- See Also:
JsonRecordParserFactory
-
-
Field Summary
-
Fields inherited from class org.beanio.stream.json.JsonReaderSupport
eof, in
-
-
Constructor Summary
Constructors Constructor Description JsonRecordUnmarshaller()
Constructs a newJsonRecordUnmarshaller
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
unmarshal(java.lang.String text)
Unmarshals a single record.-
Methods inherited from class org.beanio.stream.json.JsonReaderSupport
isWhitespace, parseValue, readArray, readObject, readString, readUnicode, setReader
-
-
-
-
Method Detail
-
unmarshal
public java.util.Map<java.lang.String,java.lang.Object> unmarshal(java.lang.String text) throws RecordIOException
Description copied from interface:RecordUnmarshaller
Unmarshals a single record.- Specified by:
unmarshal
in interfaceRecordUnmarshaller
- Parameters:
text
- the record text to unmarshal- Returns:
- the unmarshalled record object
- Throws:
RecordIOException
- if the record is malformed and cannot be parsed
-
-