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, _startObjectprotected final PARENT extends ComposerBase _parent
protected final JsonGenerator _generator
public ObjectComposer(PARENT parent, JsonGenerator g)
public void flush()
throws IOException
IOExceptionprotected ObjectComposer<PARENT> _start() throws IOException, JsonProcessingException
_start in class ComposerBaseIOExceptionJsonProcessingExceptionprotected Object _finish() throws IOException, JsonProcessingException
_finish in class ComposerBaseIOExceptionJsonProcessingExceptionpublic ArrayComposer<ObjectComposer<PARENT>> startArrayField(String fieldName) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ArrayComposer<ObjectComposer<PARENT>> startArrayField(SerializableString fieldName) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<ObjectComposer<PARENT>> startObjectField(String fieldName) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<ObjectComposer<PARENT>> startObjectField(SerializableString fieldName) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic PARENT end() throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<PARENT> put(String fieldName, boolean value) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<PARENT> putNull(String fieldName) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<PARENT> putObject(String fieldName, Object value) throws IOException, JsonProcessingException
JsonGenerator
has a properly configured ObjectCodec
to use for serializer object.IOExceptionJsonProcessingExceptionpublic ObjectComposer<PARENT> put(String fieldName, int value) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<PARENT> put(String fieldName, long value) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<PARENT> put(String fieldName, double value) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<PARENT> put(String fieldName, String value) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionpublic ObjectComposer<PARENT> put(String fieldName, CharSequence value) throws IOException, JsonProcessingException
IOExceptionJsonProcessingExceptionprotected void _closeChild()
throws IOException,
JsonProcessingException
IOExceptionJsonProcessingExceptionCopyright © 2024 FasterXML. All rights reserved.