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, _startObject
protected final JsonGenerator _generator
public SequenceComposer(JsonGenerator g)
public void flush() throws IOException
JsonGenerator.flush()
on underlying JsonGenerator
.IOException
public ArrayComposer<THIS> startArray() throws IOException
IOException
public ObjectComposer<THIS> startObject() throws IOException
IOException
public THIS add(int value) throws IOException
IOException
public THIS add(long value) throws IOException
IOException
public THIS add(double value) throws IOException
IOException
public THIS add(String value) throws IOException
IOException
public THIS add(CharSequence value) throws IOException
IOException
public THIS addNull() throws IOException
IOException
public THIS add(boolean value) throws IOException
IOException
public THIS addObject(Object pojo) throws IOException
JsonGenerator
has a properly configure ObjectCodec
to use for serializer object.IOException
protected void _closeChild() throws IOException
IOException
protected THIS _this()
Copyright © 2020 FasterXML. All rights reserved.