Package com.fasterxml.jackson.jr.ob.comp
Class SequenceComposer<THIS extends SequenceComposer<THIS>>
java.lang.Object
com.fasterxml.jackson.jr.ob.comp.ComposerBase
com.fasterxml.jackson.jr.ob.comp.SequenceComposer<THIS>
- All Implemented Interfaces:
Flushable
- Direct Known Subclasses:
ArrayComposer,JSONComposer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.core.JsonGeneratorFields inherited from class com.fasterxml.jackson.jr.ob.comp.ComposerBase
_child, _open -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected THIS_this()add(boolean value) add(double value) add(int value) add(long value) add(CharSequence value) addNull()Method used to add Java Object ("POJO") into sequence being composed: this requires that the underlyingJsonGeneratorhas a properly configureObjectCodecto use for serializer object.voidflush()CallsJsonGenerator.flush()on underlyingJsonGenerator.Methods inherited from class com.fasterxml.jackson.jr.ob.comp.ComposerBase
_childClosed, _finish, _illegalCall, _safeFinish, _start, _startArray, _startCollection, _startMap, _startObject
-
Field Details
-
_generator
protected final com.fasterxml.jackson.core.JsonGenerator _generator
-
-
Constructor Details
-
SequenceComposer
public SequenceComposer(com.fasterxml.jackson.core.JsonGenerator g)
-
-
Method Details
-
flush
CallsJsonGenerator.flush()on underlyingJsonGenerator.- Throws:
IOException
-
startArray
- Throws:
IOException
-
startObject
- Throws:
IOException
-
add
- Throws:
IOException
-
add
- Throws:
IOException
-
add
- Throws:
IOException
-
add
- Throws:
IOException
-
add
- Throws:
IOException
-
addNull
- Throws:
IOException
-
add
- Throws:
IOException
-
addObject
Method used to add Java Object ("POJO") into sequence being composed: this requires that the underlyingJsonGeneratorhas a properly configureObjectCodecto use for serializer object.- Throws:
IOException
-
_closeChild
- Throws:
IOException
-
_this
-