BeanIO 2.0.4

org.beanio.internal.parser.format.json
Class JsonStreamFormat

java.lang.Object
  extended by org.beanio.internal.parser.StreamFormatSupport
      extended by org.beanio.internal.parser.format.json.JsonStreamFormat
All Implemented Interfaces:
StreamFormat

public class JsonStreamFormat
extends StreamFormatSupport
implements StreamFormat

A StreamFormatSupport implementation for the JSON stream format.

Since:
2.0
Author:
Kevin Seim

Constructor Summary
JsonStreamFormat()
          Constructs a new JsonStreamFormat.
 
Method Summary
 MarshallingContext createMarshallingContext(boolean streaming)
          Creates a new marshalling context.
 UnmarshallingContext createUnmarshallingContext()
          Creates a new ummarshalling context.
 int getMaxDepth()
          Returns the maximum depth of the all JsonWrapper components in the parser tree layout.
 void setMaxDepth(int maxDepth)
          Sets the maximum depth of the all JsonWrapper 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
 

Constructor Detail

JsonStreamFormat

public JsonStreamFormat()
Constructs a new JsonStreamFormat.

Method Detail

createUnmarshallingContext

public UnmarshallingContext createUnmarshallingContext()
Description copied from interface: StreamFormat
Creates a new ummarshalling context.

Specified by:
createUnmarshallingContext in interface StreamFormat
Returns:
the new UnmarshallingContext

createMarshallingContext

public MarshallingContext createMarshallingContext(boolean streaming)
Description copied from interface: StreamFormat
Creates a new marshalling context.

Specified by:
createMarshallingContext in interface StreamFormat
Parameters:
streaming - true if marshalling to a stream
Returns:
the new MarshallingContext

getMaxDepth

public int getMaxDepth()
Returns the maximum depth of the all JsonWrapper components in the parser tree layout.

Returns:
the maximum depth

setMaxDepth

public void setMaxDepth(int maxDepth)
Sets the maximum depth of the all JsonWrapper components in the parser tree layout.

Parameters:
maxDepth - the maximum depth

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim