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, writeRecordcreateHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, popIteration, pushIteration, setLocalpublic JsonMarshallingContext(int maxDepth)
maxDepth - the maximum depth of the all JsonWrapper components in the parser tree layout.protected Object getRecordObject()
MarshallingContextRecordWriter when
MarshallingContext.writeRecord() is called.getRecordObject in class MarshallingContextpublic void clear()
MarshallingContextclear in class MarshallingContextpublic void push(JsonNode type)
type - public void pop()