public abstract class SequenceComposer<THIS extends SequenceComposer<THIS>> extends ComposerBase
| Modifier and Type | Field and Description |
|---|---|
protected JsonGenerator |
_generator |
_child, _open| Constructor and Description |
|---|
SequenceComposer(JsonGenerator g) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_closeChild() |
protected THIS |
_this() |
THIS |
add(boolean value) |
THIS |
add(CharSequence value) |
THIS |
add(double value) |
THIS |
add(int value) |
THIS |
add(long value) |
THIS |
add(String value) |
THIS |
addNull() |
THIS |
addObject(Object pojo)
Method used to add Java Object ("POJO") into sequence being
composed: this requires that the underlying
JsonGenerator
has a properly configure ObjectCodec
to use for serializer object. |
void |
flush()
Calls
JsonGenerator.flush() on underlying JsonGenerator. |
ArrayComposer<THIS> |
startArray() |
ObjectComposer<THIS> |
startObject() |
_childClosed, _finish, _illegalCall, _safeFinish, _start, _startArray, _startCollection, _startMap, _startObjectprotected final JsonGenerator _generator
public SequenceComposer(JsonGenerator g)
public void flush()
throws IOException
JsonGenerator.flush() on underlying JsonGenerator.IOExceptionpublic ArrayComposer<THIS> startArray() throws IOException
IOExceptionpublic ObjectComposer<THIS> startObject() throws IOException
IOExceptionpublic THIS add(int value) throws IOException
IOExceptionpublic THIS add(long value) throws IOException
IOExceptionpublic THIS add(double value) throws IOException
IOExceptionpublic THIS add(String value) throws IOException
IOExceptionpublic THIS add(CharSequence value) throws IOException
IOExceptionpublic THIS addNull() throws IOException
IOExceptionpublic THIS add(boolean value) throws IOException
IOExceptionpublic THIS addObject(Object pojo) throws IOException
JsonGenerator
has a properly configure ObjectCodec
to use for serializer object.IOExceptionprotected void _closeChild()
throws IOException
IOExceptionprotected THIS _this()
Copyright © 2024 FasterXML. All rights reserved.