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:
java.io.Flushable
- Direct Known Subclasses:
ArrayComposer,JSONComposer
public abstract class SequenceComposer<THIS extends SequenceComposer<THIS>> extends ComposerBase
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.core.JsonGenerator_generator-
Fields inherited from class com.fasterxml.jackson.jr.ob.comp.ComposerBase
_child, _open
-
-
Constructor Summary
Constructors Constructor Description SequenceComposer(com.fasterxml.jackson.core.JsonGenerator g)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_closeChild()protected THIS_this()THISadd(boolean value)THISadd(double value)THISadd(int value)THISadd(long value)THISadd(java.lang.CharSequence value)THISadd(java.lang.String value)THISaddNull()THISaddObject(java.lang.Object pojo)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.ArrayComposer<THIS>startArray()ObjectComposer<THIS>startObject()-
Methods inherited from class com.fasterxml.jackson.jr.ob.comp.ComposerBase
_childClosed, _finish, _illegalCall, _safeFinish, _start, _startArray, _startCollection, _startMap, _startObject
-
-
-
-
Method Detail
-
flush
public void flush() throws java.io.IOExceptionCallsJsonGenerator.flush()on underlyingJsonGenerator.- Throws:
java.io.IOException
-
startArray
public ArrayComposer<THIS> startArray() throws java.io.IOException
- Throws:
java.io.IOException
-
startObject
public ObjectComposer<THIS> startObject() throws java.io.IOException
- Throws:
java.io.IOException
-
add
public THIS add(int value) throws java.io.IOException
- Throws:
java.io.IOException
-
add
public THIS add(long value) throws java.io.IOException
- Throws:
java.io.IOException
-
add
public THIS add(double value) throws java.io.IOException
- Throws:
java.io.IOException
-
add
public THIS add(java.lang.String value) throws java.io.IOException
- Throws:
java.io.IOException
-
add
public THIS add(java.lang.CharSequence value) throws java.io.IOException
- Throws:
java.io.IOException
-
addNull
public THIS addNull() throws java.io.IOException
- Throws:
java.io.IOException
-
add
public THIS add(boolean value) throws java.io.IOException
- Throws:
java.io.IOException
-
addObject
public THIS addObject(java.lang.Object pojo) throws java.io.IOException
Method used to add Java Object ("POJO") into sequence being composed: this requires that the underlyingJsonGeneratorhas a properly configureObjectCodecto use for serializer object.- Throws:
java.io.IOException
-
_closeChild
protected void _closeChild() throws java.io.IOException- Throws:
java.io.IOException
-
_this
protected THIS _this()
-
-