org.beanio.internal.parser.format.json
Class JsonMarshallingContext
java.lang.Object
org.beanio.internal.parser.ParsingContext
org.beanio.internal.parser.MarshallingContext
org.beanio.internal.parser.format.json.JsonMarshallingContext
public class JsonMarshallingContext
- extends MarshallingContext
A MarshallingContext for JSON formatted streams.
- Since:
- 2.0
- Author:
- Kevin Seim
| Methods inherited from class org.beanio.internal.parser.MarshallingContext |
getBean, getComponentName, getMode, getRecordWriter, setBean, setComponentName, setRecordWriter, toArray, toDocument, toList, writeRecord |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonMarshallingContext
public JsonMarshallingContext(int maxDepth)
- Constructs a new JsonMarshallingContext.
- Parameters:
maxDepth - the maximum depth of the all JsonWrapper components in the parser tree layout.
getRecordObject
protected Object getRecordObject()
- Description copied from class:
MarshallingContext
- Returns the record object to pass to the
RecordWriter when
MarshallingContext.writeRecord() is called.
- Specified by:
getRecordObject in class MarshallingContext
- Returns:
- the record object
clear
public void clear()
- Description copied from class:
MarshallingContext
- Clear is invoked after each record is marshalled.
- Overrides:
clear in class MarshallingContext
push
public void push(JsonNode type)
- Parameters:
type -
pop
public void pop()
put
public void put(JsonNode type,
Object value)
- Parameters:
type - value -
Copyright © 2010-2013 Kevin Seim