public class ObjectComposer<PARENT extends ComposerBase> extends ComposerBase
Modifier and Type | Field and Description |
---|---|
protected JsonGenerator |
_generator |
protected PARENT |
_parent |
_child, _open
Constructor and Description |
---|
ObjectComposer(PARENT parent,
JsonGenerator g) |
_childClosed, _illegalCall, _safeFinish, _startArray, _startCollection, _startMap, _startObject
protected final PARENT extends ComposerBase _parent
protected final JsonGenerator _generator
public ObjectComposer(PARENT parent, JsonGenerator g)
public void flush() throws IOException
IOException
protected ObjectComposer<PARENT> _start() throws IOException, JsonProcessingException
_start
in class ComposerBase
IOException
JsonProcessingException
protected Object _finish() throws IOException, JsonProcessingException
_finish
in class ComposerBase
IOException
JsonProcessingException
public ArrayComposer<ObjectComposer<PARENT>> startArrayField(String fieldName) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ArrayComposer<ObjectComposer<PARENT>> startArrayField(SerializableString fieldName) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<ObjectComposer<PARENT>> startObjectField(String fieldName) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<ObjectComposer<PARENT>> startObjectField(SerializableString fieldName) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public PARENT end() throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, boolean value) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<PARENT> putNull(String fieldName) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<PARENT> putObject(String fieldName, Object value) throws IOException, JsonProcessingException
JsonGenerator
has a properly configured ObjectCodec
to use for serializer object.IOException
JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, int value) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, long value) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, double value) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, String value) throws IOException, JsonProcessingException
IOException
JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, CharSequence value) throws IOException, JsonProcessingException
IOException
JsonProcessingException
protected void _closeChild() throws IOException, JsonProcessingException
IOException
JsonProcessingException
Copyright © 2020 FasterXML. All rights reserved.