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
AStreamFormatSupportimplementation 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 MarshallingContextcreateMarshallingContext(boolean streaming)Creates a new marshalling context.UnmarshallingContextcreateUnmarshallingContext()Creates a new ummarshalling context.intgetMaxDepth()Returns the maximum depth of the allJsonWrappercomponents in the parser tree layout.voidsetMaxDepth(int maxDepth)Sets the maximum depth of the allJsonWrappercomponents 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:StreamFormatCreates a new ummarshalling context.- Specified by:
createUnmarshallingContextin interfaceStreamFormat- Returns:
- the new
UnmarshallingContext
-
createMarshallingContext
public MarshallingContext createMarshallingContext(boolean streaming)
Description copied from interface:StreamFormatCreates a new marshalling context.- Specified by:
createMarshallingContextin interfaceStreamFormat- Parameters:
streaming- true if marshalling to a stream- Returns:
- the new
MarshallingContext
-
getMaxDepth
public int getMaxDepth()
Returns the maximum depth of the allJsonWrappercomponents in the parser tree layout.- Returns:
- the maximum depth
-
setMaxDepth
public void setMaxDepth(int maxDepth)
Sets the maximum depth of the allJsonWrappercomponents in the parser tree layout.- Parameters:
maxDepth- the maximum depth
-
-