Package com.fasterxml.jackson.jr.ob.comp
Class ComposerBase
- java.lang.Object
-
- com.fasterxml.jackson.jr.ob.comp.ComposerBase
-
- All Implemented Interfaces:
java.io.Flushable
- Direct Known Subclasses:
CollectionComposer
,MapComposer
,ObjectComposer
,SequenceComposer
public abstract class ComposerBase extends java.lang.Object implements java.io.Flushable
Base class for all composer implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected ComposerBase
_child
protected boolean
_open
-
Constructor Summary
Constructors Modifier Constructor Description protected
ComposerBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
_childClosed()
protected abstract java.lang.Object
_finish()
protected java.lang.IllegalStateException
_illegalCall()
protected java.lang.Object
_safeFinish()
Helper method used to "peel away" bogus exception declarationprotected abstract ComposerBase
_start()
protected <P extends ComposerBase>
ArrayComposer<P>_startArray(P parent, com.fasterxml.jackson.core.JsonGenerator g)
protected <P extends ComposerBase>
CollectionComposer<P,?>_startCollection(P parent)
protected <P extends ComposerBase>
MapComposer<P>_startMap(P parent)
protected <P extends ComposerBase>
ObjectComposer<P>_startObject(P parent, com.fasterxml.jackson.core.JsonGenerator g)
-
-
-
Field Detail
-
_child
protected ComposerBase _child
-
_open
protected boolean _open
-
-
Method Detail
-
_start
protected abstract ComposerBase _start() throws java.io.IOException
- Throws:
java.io.IOException
-
_finish
protected abstract java.lang.Object _finish() throws java.io.IOException
- Throws:
java.io.IOException
-
_safeFinish
protected java.lang.Object _safeFinish()
Helper method used to "peel away" bogus exception declaration
-
_childClosed
protected final void _childClosed()
-
_illegalCall
protected java.lang.IllegalStateException _illegalCall()
-
_startArray
protected <P extends ComposerBase> ArrayComposer<P> _startArray(P parent, com.fasterxml.jackson.core.JsonGenerator g) throws java.io.IOException
- Throws:
java.io.IOException
-
_startObject
protected <P extends ComposerBase> ObjectComposer<P> _startObject(P parent, com.fasterxml.jackson.core.JsonGenerator g) throws java.io.IOException
- Throws:
java.io.IOException
-
_startCollection
protected <P extends ComposerBase> CollectionComposer<P,?> _startCollection(P parent)
-
_startMap
protected <P extends ComposerBase> MapComposer<P> _startMap(P parent)
-
-