public class JsonMarshallingContext extends MarshallingContext
MarshallingContext
for JSON formatted streams.MARSHALLING, UNMARSHALLING
Constructor and Description |
---|
JsonMarshallingContext(int maxDepth)
Constructs a new JsonMarshallingContext.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear is invoked after each bean object (record or group) is marshalled.
|
protected Object |
getRecordObject()
Returns the record object to pass to the
RecordWriter when
MarshallingContext.writeRecord() is called. |
void |
pop() |
void |
push(JsonNode type) |
void |
put(JsonNode type,
Object value) |
getBean, getComponentName, getMode, getRecordWriter, setBean, setComponentName, setRecordWriter, toArray, toDocument, toList, writeRecord
createHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, popIteration, pushIteration, setLocal
public JsonMarshallingContext(int maxDepth)
maxDepth
- the maximum depth of the all JsonWrapper
components in the parser tree layout.protected Object getRecordObject()
MarshallingContext
RecordWriter
when
MarshallingContext.writeRecord()
is called.getRecordObject
in class MarshallingContext
public void clear()
MarshallingContext
clear
in class MarshallingContext
public void push(JsonNode type)
type
- public void pop()