Class JsonStreamFormat
- java.lang.Object
-
- org.beanio.internal.parser.StreamFormatSupport
-
- org.beanio.internal.parser.format.json.JsonStreamFormat
-
- All Implemented Interfaces:
StreamFormat
public class JsonStreamFormat extends StreamFormatSupport implements StreamFormat
AStreamFormatSupport
implementation for the JSON stream format.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description JsonStreamFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarshallingContext
createMarshallingContext(boolean streaming)
Creates a new marshalling context.UnmarshallingContext
createUnmarshallingContext()
Creates a new ummarshalling context.int
getMaxDepth()
Returns the maximum depth of the allJsonWrapper
components in the parser tree layout.void
setMaxDepth(int maxDepth)
Sets the maximum depth of the allJsonWrapper
components in the parser tree layout.-
Methods inherited from class org.beanio.internal.parser.StreamFormatSupport
createRecordMarshaller, createRecordReader, createRecordUnmarshaller, createRecordWriter, getName, getRecordParserFactory, setName, setRecordParserFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.beanio.internal.parser.StreamFormat
createRecordMarshaller, createRecordReader, createRecordUnmarshaller, createRecordWriter, getName
-
-
-
-
Method Detail
-
createUnmarshallingContext
public UnmarshallingContext createUnmarshallingContext()
Description copied from interface:StreamFormat
Creates a new ummarshalling context.- Specified by:
createUnmarshallingContext
in interfaceStreamFormat
- Returns:
- the new
UnmarshallingContext
-
createMarshallingContext
public MarshallingContext createMarshallingContext(boolean streaming)
Description copied from interface:StreamFormat
Creates a new marshalling context.- Specified by:
createMarshallingContext
in interfaceStreamFormat
- Parameters:
streaming
- true if marshalling to a stream- Returns:
- the new
MarshallingContext
-
getMaxDepth
public int getMaxDepth()
Returns the maximum depth of the allJsonWrapper
components in the parser tree layout.- Returns:
- the maximum depth
-
setMaxDepth
public void setMaxDepth(int maxDepth)
Sets the maximum depth of the allJsonWrapper
components in the parser tree layout.- Parameters:
maxDepth
- the maximum depth
-
-