Package com.fasterxml.jackson.jr.ob.comp
Class ObjectComposer<PARENT extends ComposerBase>
java.lang.Object
com.fasterxml.jackson.jr.ob.comp.ComposerBase
com.fasterxml.jackson.jr.ob.comp.ObjectComposer<PARENT>
- All Implemented Interfaces:
Flushable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.core.JsonGeneratorprotected final PARENTFields inherited from class com.fasterxml.jackson.jr.ob.comp.ComposerBase
_child, _open -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Object_finish()protected ObjectComposer<PARENT>_start()end()voidflush()put(String fieldName, CharSequence value) Method used to put a Java Object ("POJO") value into Object being composed: this requires that the underlyingJsonGeneratorhas a properly configuredObjectCodecto use for serializer object.startArrayField(com.fasterxml.jackson.core.SerializableString fieldName) startArrayField(String fieldName) startObjectField(com.fasterxml.jackson.core.SerializableString fieldName) startObjectField(String fieldName) Methods inherited from class com.fasterxml.jackson.jr.ob.comp.ComposerBase
_childClosed, _illegalCall, _safeFinish, _startArray, _startCollection, _startMap, _startObject
-
Field Details
-
_parent
-
_generator
protected final com.fasterxml.jackson.core.JsonGenerator _generator
-
-
Constructor Details
-
ObjectComposer
-
-
Method Details
-
flush
- Throws:
IOException
-
_start
protected ObjectComposer<PARENT> _start() throws IOException, com.fasterxml.jackson.core.JsonProcessingException- Specified by:
_startin classComposerBase- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
_finish
- Specified by:
_finishin classComposerBase- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
startArrayField
public ArrayComposer<ObjectComposer<PARENT>> startArrayField(String fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
startArrayField
public ArrayComposer<ObjectComposer<PARENT>> startArrayField(com.fasterxml.jackson.core.SerializableString fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
startObjectField
public ObjectComposer<ObjectComposer<PARENT>> startObjectField(String fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
startObjectField
public ObjectComposer<ObjectComposer<PARENT>> startObjectField(com.fasterxml.jackson.core.SerializableString fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
end
- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
put
public ObjectComposer<PARENT> put(String fieldName, boolean value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
putNull
public ObjectComposer<PARENT> putNull(String fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
putObject
public ObjectComposer<PARENT> putObject(String fieldName, Object value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException Method used to put a Java Object ("POJO") value into Object being composed: this requires that the underlyingJsonGeneratorhas a properly configuredObjectCodecto use for serializer object.- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException- Since:
- 2.6
-
put
public ObjectComposer<PARENT> put(String fieldName, int value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
put
public ObjectComposer<PARENT> put(String fieldName, long value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
put
public ObjectComposer<PARENT> put(String fieldName, double value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
put
public ObjectComposer<PARENT> put(String fieldName, String value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
put
public ObjectComposer<PARENT> put(String fieldName, CharSequence value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
_closeChild
- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-