Top Fields Constructors Methods
com.fasterxml.jackson.jr.ob.comp

public Class ObjectComposer<PARENT extends ComposerBase>

extends ComposerBase
Class Inheritance
Imports
java.io.IOException, com.fasterxml.jackson.core.JsonGenerator, .JsonProcessingException, .SerializableString

Field Summary

Modifier and TypeField and Description
protected final JsonGenerator
protected final PARENT
Inherited from com.fasterxml.jackson.jr.ob.comp.ComposerBase:
_child_open

Constructor Summary

AccessConstructor and Description
public
ObjectComposer(PARENT parent, JsonGenerator g)

Method Summary

Modifier and TypeMethod and Description
protected void
protected Object
protected ObjectComposer<PARENT>
public PARENT
end()

public void
flush()

Implements java.io.Flushable.flush.

Flushes this stream by writing any buffered output to the underlying stream.

public ObjectComposer<PARENT>
put(String fieldName, boolean value)

public ObjectComposer<PARENT>
put(String fieldName, int value)

public ObjectComposer<PARENT>
put(String fieldName, long value)

public ObjectComposer<PARENT>
put(String fieldName, double value)

public ObjectComposer<PARENT>
put(String fieldName, String value)

public ObjectComposer<PARENT>
put(String fieldName, CharSequence value)

public ObjectComposer<PARENT>
putNull(String fieldName)

public ObjectComposer<PARENT>
putObject(String fieldName, Object value)

Method used to put a Java Object ("POJO") value into Object being composed: this requires that the underlying JsonGenerator has a properly configured com.fasterxml.jackson.core.ObjectCodec to use for serializer object.

public ArrayComposer<ObjectComposer<PARENT>>
public ArrayComposer<ObjectComposer<PARENT>>
public ObjectComposer<ObjectComposer<PARENT>>
public ObjectComposer<ObjectComposer<PARENT>>
Inherited from com.fasterxml.jackson.jr.ob.comp.ComposerBase:
_childClosed_illegalCall_safeFinish_startArray_startCollection_startMap_startObject

Field Detail

_generatorback to summary
protected final JsonGenerator _generator
_parentback to summary
protected final PARENT _parent

Constructor Detail

ObjectComposerback to summary
public ObjectComposer(PARENT parent, JsonGenerator g)

Method Detail

_closeChildback to summary
protected void _closeChild() throws IOException, JsonProcessingException
_finishback to summary
protected Object _finish() throws IOException, JsonProcessingException

Implements abstract com.fasterxml.jackson.jr.ob.comp.ComposerBase._finish.

Annotations
@Override
_startback to summary
protected ObjectComposer<PARENT> _start() throws IOException, JsonProcessingException

Implements abstract com.fasterxml.jackson.jr.ob.comp.ComposerBase._start.

Annotations
@Override
endback to summary
public PARENT end() throws IOException, JsonProcessingException
flushback to summary
public void flush() throws IOException

Implements java.io.Flushable.flush.

Doc from java.io.Flushable.flush.

Flushes this stream by writing any buffered output to the underlying stream.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
putback to summary
public ObjectComposer<PARENT> put(String fieldName, boolean value) throws IOException, JsonProcessingException
putback to summary
public ObjectComposer<PARENT> put(String fieldName, int value) throws IOException, JsonProcessingException
putback to summary
public ObjectComposer<PARENT> put(String fieldName, long value) throws IOException, JsonProcessingException
putback to summary
public ObjectComposer<PARENT> put(String fieldName, double value) throws IOException, JsonProcessingException
putback to summary
public ObjectComposer<PARENT> put(String fieldName, String value) throws IOException, JsonProcessingException
putback to summary
public ObjectComposer<PARENT> put(String fieldName, CharSequence value) throws IOException, JsonProcessingException
putNullback to summary
public ObjectComposer<PARENT> putNull(String fieldName) throws IOException, JsonProcessingException
putObjectback to summary
public ObjectComposer<PARENT> putObject(String fieldName, Object value) throws IOException, JsonProcessingException

Method used to put a Java Object ("POJO") value into Object being composed: this requires that the underlying JsonGenerator has a properly configured com.fasterxml.jackson.core.ObjectCodec to use for serializer object.

Since
2.6
startArrayFieldback to summary
public ArrayComposer<ObjectComposer<PARENT>> startArrayField(String fieldName) throws IOException, JsonProcessingException
startArrayFieldback to summary
public ArrayComposer<ObjectComposer<PARENT>> startArrayField(SerializableString fieldName) throws IOException, JsonProcessingException
startObjectFieldback to summary
public ObjectComposer<ObjectComposer<PARENT>> startObjectField(String fieldName) throws IOException, JsonProcessingException
startObjectFieldback to summary
public ObjectComposer<ObjectComposer<PARENT>> startObjectField(SerializableString fieldName) throws IOException, JsonProcessingException