public class ObjectStreamingJsonHierarchicalModel extends Object implements MapHierarchicalModel<GeneratorAdapter>
| Modifier and Type | Field and Description |
|---|---|
protected GeneratorAdapter |
generator |
| Constructor and Description |
|---|
ObjectStreamingJsonHierarchicalModel(GeneratorAdapter generator) |
ObjectStreamingJsonHierarchicalModel(GeneratorAdapter generator,
ArrayStreamingJsonHierarchicalModel arrayModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String name,
Object result) |
ListHierarchicalModel<GeneratorAdapter> |
createChildList(String name) |
MapHierarchicalModel<GeneratorAdapter> |
createChildMap(String name) |
void |
finished() |
GeneratorAdapter |
getUnderlyingModel() |
void |
start() |
protected GeneratorAdapter generator
public ObjectStreamingJsonHierarchicalModel(GeneratorAdapter generator) throws IOException
IOExceptionpublic ObjectStreamingJsonHierarchicalModel(GeneratorAdapter generator, ArrayStreamingJsonHierarchicalModel arrayModel) throws IOException
IOExceptionpublic void start()
throws IOException
IOExceptionpublic GeneratorAdapter getUnderlyingModel()
getUnderlyingModel in interface HierarchicalModel<GeneratorAdapter>public void finished()
throws IOException
finished in interface HierarchicalModel<GeneratorAdapter>IOExceptionpublic void addProperty(String name, Object result) throws IOException
addProperty in interface MapHierarchicalModel<GeneratorAdapter>IOExceptionpublic MapHierarchicalModel<GeneratorAdapter> createChildMap(String name) throws IOException
createChildMap in interface MapHierarchicalModel<GeneratorAdapter>IOExceptionpublic ListHierarchicalModel<GeneratorAdapter> createChildList(String name) throws IOException
createChildList in interface MapHierarchicalModel<GeneratorAdapter>IOExceptionCopyright © 2014. All Rights Reserved.