Top Fields Constructors Methods
com.fasterxml.jackson.core.util

public Class JsonGeneratorDelegate

extends JsonGenerator
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.core.filter.FilteringGeneratorDelegate
Imports
com.fasterxml.jackson.core.*, com.fasterxml.jackson.core.io.CharacterEscapes, java.io.IOException, .InputStream, .Reader, java.math.BigDecimal, .BigInteger

Field Summary

Modifier and TypeField and Description
protected JsonGenerator
delegate

Delegate object that method calls are delegated to.

protected boolean
delegateCopyMethods

Whether copy methods (copyCurrentEvent, copyCurrentStructure, writeTree and writeObject) are to be called (true), or handled by this object (false).

Inherited from com.fasterxml.jackson.core.JsonGenerator:
_cfgPrettyPrinterDEFAULT_BINARY_WRITE_CAPABILITIESDEFAULT_TEXTUAL_WRITE_CAPABILITIESDEFAULT_WRITE_CAPABILITIES

Constructor Summary

AccessConstructor and Description
public
public
JsonGeneratorDelegate(JsonGenerator
Underlying generator to delegate calls to
d
,
boolean
Flag assigned to delagateCopyMethod and which defines whether copy methods are handled locally (false), or delegated to configured
delegateCopyMethods
)

Method Summary

Modifier and TypeMethod and Description
public void
assignCurrentValue(Object
Current value to assign for the current context of this generator
v
)

Overrides com.fasterxml.jackson.core.JsonGenerator.assignCurrentValue.

Helper method, usually equivalent to: getOutputContext().setCurrentValue(v);
public boolean
canOmitFields()

Overrides com.fasterxml.jackson.core.JsonGenerator.canOmitFields.

Introspection method to call to check whether it is ok to omit writing of Object fields or not.
public boolean
canUseSchema(FormatSchema
Schema to check
schema
)

Overrides com.fasterxml.jackson.core.JsonGenerator.canUseSchema.

Method that can be used to verify that given schema can be used with this generator (using setSchema).
public boolean
canWriteBinaryNatively()

Overrides com.fasterxml.jackson.core.JsonGenerator.canWriteBinaryNatively.

Introspection method that may be called to see if the underlying data format supports "native" binary data; that is, an efficient output of binary content without encoding.
public boolean
canWriteFormattedNumbers()

Overrides com.fasterxml.jackson.core.JsonGenerator.canWriteFormattedNumbers.

Introspection method to call to check whether it is possible to write numbers using writeNumber(java.lang.String) using possible custom format, or not.
public boolean
canWriteObjectId()

Overrides com.fasterxml.jackson.core.JsonGenerator.canWriteObjectId.

Introspection method that may be called to see if the underlying data format supports some kind of Object Ids natively (many do not; for example, JSON doesn't).
public boolean
canWriteTypeId()

Overrides com.fasterxml.jackson.core.JsonGenerator.canWriteTypeId.

Introspection method that may be called to see if the underlying data format supports some kind of Type Ids natively (many do not; for example, JSON doesn't).
public void
close()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.close.

Implements java.io.Closeable.close.

Method called to close this generator, so that no more content can be written.
public void
copyCurrentEvent(JsonParser
Parser that points to event (token) to copy
p
)

Overrides com.fasterxml.jackson.core.JsonGenerator.copyCurrentEvent.

Method for copying contents of the current event that the given parser instance points to.
public void
copyCurrentStructure(JsonParser
Parser that points to the value to copy
p
)

Overrides com.fasterxml.jackson.core.JsonGenerator.copyCurrentStructure.

Method for copying contents of the current event and following events that it encloses the given parser instance points to.
public Object
currentValue()

Overrides com.fasterxml.jackson.core.JsonGenerator.currentValue.

Helper method, usually equivalent to: getOutputContext().getCurrentValue();

Note that "current value" is NOT populated (or used) by Streaming parser or generators; it is only used by higher-level data-binding functionality.

public JsonGenerator

Returns:

Underlying generator that calls are delegated to
delegate
()

public JsonGenerator
disable(JsonGenerator.Feature
Feature to disable
f
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.disable.

Method for disabling specified feature (check Feature for list of features)
public JsonGenerator
enable(JsonGenerator.Feature
Feature to enable
f
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.enable.

Method for enabling specified generator feature: check Feature for list of available features.
public void
flush()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.flush.

Implements java.io.Flushable.flush.

Method called to flush any buffered content to the underlying target (output stream, writer), and to flush the target itself as well.
public CharacterEscapes
getCharacterEscapes()

Overrides com.fasterxml.jackson.core.JsonGenerator.getCharacterEscapes.

Method for accessing custom escapes factory uses for JsonGenerators it creates.
public ObjectCodec
getCodec()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.getCodec.

Method for accessing the object used for writing Java object as JSON content (using method writeObject).
public Object
getCurrentValue()

Overrides com.fasterxml.jackson.core.JsonGenerator.getCurrentValue.

Alias for currentValue(), to be deprecated in later Jackson 2.x versions (and removed from Jackson 3.0).
public JsonGenerator
getDelegate()

Deprecated
public int
getFeatureMask()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.getFeatureMask.

Bulk access method for getting state of all standard (non-dataformat-specific) JsonGenerator.Features.
public int
getHighestEscapedChar()

Overrides com.fasterxml.jackson.core.JsonGenerator.getHighestEscapedChar.

Accessor method for testing what is the highest unescaped character configured for this generator.
public int
getOutputBuffered()

Overrides com.fasterxml.jackson.core.JsonGenerator.getOutputBuffered.

Method for verifying amount of content that is buffered by generator but not yet flushed to the underlying target (stream, writer), in units (byte, char) that the generator implementation uses for buffering; or -1 if this information is not available.
public JsonStreamContext
getOutputContext()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.getOutputContext.

Accessor for context object that provides information about low-level logical position withing output token stream.
public Object
getOutputTarget()

Overrides com.fasterxml.jackson.core.JsonGenerator.getOutputTarget.

Method that can be used to get access to object that is used as target for generated output; this is usually either OutputStream or Writer, depending on what generator was constructed with.
public PrettyPrinter
getPrettyPrinter()

Overrides com.fasterxml.jackson.core.JsonGenerator.getPrettyPrinter.

Accessor for checking whether this generator has a configured PrettyPrinter; returns it if so, null if none configured.
public FormatSchema
getSchema()

Overrides com.fasterxml.jackson.core.JsonGenerator.getSchema.

Method for accessing Schema that this generator uses, if any; null if none.
public JacksonFeatureSet<StreamWriteCapability>
getWriteCapabilities()

Overrides com.fasterxml.jackson.core.JsonGenerator.getWriteCapabilities.

Accessor for getting metadata on capabilities of this generator, based on underlying data format being read (directly or indirectly).
public boolean
isClosed()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.isClosed.

Method that can be called to determine whether this generator is closed or not.
public boolean
isEnabled(JsonGenerator.Feature
Feature to check
f
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.isEnabled.

Method for checking whether given feature is enabled.
public JsonGenerator
overrideFormatFeatures(int
Bit mask of set/clear state for features to change
values
,
int
Bit mask of features to change
mask
)

Overrides com.fasterxml.jackson.core.JsonGenerator.overrideFormatFeatures.

Bulk set method for (re)setting states of FormatFeatures, by specifying values (set / clear) along with a mask, to determine which features to change, if any.
public JsonGenerator
overrideStdFeatures(int
Bit mask of set/clear state for features to change
values
,
int
Bit mask of features to change
mask
)

Overrides com.fasterxml.jackson.core.JsonGenerator.overrideStdFeatures.

Bulk set method for (re)setting states of features specified by mask.
public JsonGenerator
setCharacterEscapes(CharacterEscapes
CharacterEscapes to configure this generator to use, if any; null if none
esc
)

Overrides com.fasterxml.jackson.core.JsonGenerator.setCharacterEscapes.

Method for defining custom escapes factory uses for JsonGenerators it creates.
public JsonGenerator
setCodec(ObjectCodec
Codec to assign, if any; null if none
oc
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.setCodec.

Method that can be called to set or reset the object to use for writing Java objects as JsonContent (using method writeObject).
public void
setCurrentValue(Object
Current value to assign for the current context of this generator
v
)

Overrides com.fasterxml.jackson.core.JsonGenerator.setCurrentValue.

Alias for assignCurrentValue, to be deprecated in later Jackson 2.x versions (and removed from Jackson 3.0).
public JsonGenerator
setFeatureMask(int
Bitmask that defines which Features are enabled and which disabled
mask
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.setFeatureMask.

Deprecated
Bulk set method for (re)setting states of all standard Features
public JsonGenerator
setHighestNonEscapedChar(int
Either -1 to indicate that no additional escaping is to be done; or highest code point not to escape (meaning higher ones will be), if positive value.
charCode
)

Overrides com.fasterxml.jackson.core.JsonGenerator.setHighestNonEscapedChar.

Method that can be called to request that generator escapes all character codes above specified code point (if positive value); or, to not escape any characters except for ones that must be escaped for the data format (if -1).
public JsonGenerator
setPrettyPrinter(PrettyPrinter
PrettyPrinter to assign, if any; null if none
pp
)

Overrides com.fasterxml.jackson.core.JsonGenerator.setPrettyPrinter.

Method for setting a custom pretty printer, which is usually used to add indentation for improved human readability.
public JsonGenerator
setRootValueSeparator(SerializableString
Separator to use, if any; null means that no separator is automatically added
sep
)

Overrides com.fasterxml.jackson.core.JsonGenerator.setRootValueSeparator.

Method that allows overriding String used for separating root-level JSON values (default is single space character)

Default implementation throws UnsupportedOperationException.

public void
setSchema(FormatSchema
Schema to use
schema
)

Overrides com.fasterxml.jackson.core.JsonGenerator.setSchema.

Method to call to make this generator use specified schema.
public StreamWriteConstraints
streamWriteConstraints()

Overrides com.fasterxml.jackson.core.JsonGenerator.streamWriteConstraints.

Get the constraints to apply when performing streaming writes.
public JsonGenerator
useDefaultPrettyPrinter()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.useDefaultPrettyPrinter.

Convenience method for enabling pretty-printing using the default pretty printer (com.fasterxml.jackson.core.util.DefaultPrettyPrinter).
public Version
version()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.version.

Implements com.fasterxml.jackson.core.Versioned.version.

Accessor for finding out version of the bundle that provided this generator instance.
public void
writeArray(int[]
Array that contains values to write
array
,
int
Offset of the first element to write, within array
offset
,
int
Number of elements in array to write, from `offset` to `offset + len - 1`
length
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeArray.

Value write method that can be called to write a single array (sequence of JsonToken#START_ARRAY, zero or more JsonToken#VALUE_NUMBER_INT, JsonToken#END_ARRAY)
public void
writeArray(long[]
Array that contains values to write
array
,
int
Offset of the first element to write, within array
offset
,
int
Number of elements in array to write, from `offset` to `offset + len - 1`
length
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeArray.

Value write method that can be called to write a single array (sequence of JsonToken#START_ARRAY, zero or more JsonToken#VALUE_NUMBER_INT, JsonToken#END_ARRAY)
public void
writeArray(double[]
Array that contains values to write
array
,
int
Offset of the first element to write, within array
offset
,
int
Number of elements in array to write, from `offset` to `offset + len - 1`
length
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeArray.

Value write method that can be called to write a single array (sequence of JsonToken#START_ARRAY, zero or more JsonToken#VALUE_NUMBER_FLOAT, JsonToken#END_ARRAY)
public void
writeArray(String[]
Array that contains values to write
array
,
int
Offset of the first element to write, within array
offset
,
int
Number of elements in array to write, from `offset` to `offset + len - 1`
length
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeArray.

Value write method that can be called to write a single array (sequence of JsonToken#START_ARRAY, zero or more JsonToken#VALUE_STRING, JsonToken#END_ARRAY)
public void
writeBinary(Base64Variant
Base64 variant to use: defines details such as whether padding is used (and if so, using which character); what is the maximum line length before adding linefeed, and also the underlying alphabet to use.
b64variant
,
byte[]
Buffer that contains binary data to write
data
,
int
Offset in data of the first byte of data to write
offset
,
int
Length of data to write
len
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeBinary.

Method that will output given chunk of binary data as base64 encoded, as a complete String value (surrounded by double quotes).
public int
writeBinary(Base64Variant
Base64 variant to use
b64variant
,
InputStream
InputStream to use for reading binary data to write. Will not be closed after successful write operation
data
,
int
(optional) number of bytes that will be available; or -1 to be indicate it is not known. If a positive length is given, data MUST provide at least that many bytes: if not, an exception will be thrown. Note that implementations need not support cases where length is not known in advance; this depends on underlying data format: JSON output does NOT require length, other formats may.
dataLength
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeBinary.

Method similar to writeBinary(Base64Variant, byte[], int, int), but where input is provided through a stream, allowing for incremental writes without holding the whole input in memory.
public void
writeBoolean(boolean
Boolean value to write
state
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeBoolean.

Method for outputting literal JSON boolean value (one of Strings 'true' and 'false').
public void
writeEmbeddedObject(Object
Native format-specific value to write
object
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeEmbeddedObject.

Method that can be called on backends that support passing opaque native values that some data formats support; not used with JSON backend, more common with binary formats.
public void
writeEndArray()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeEndArray.

Method for writing closing marker of a JSON Array value (character ']'; plus possible white space decoration if pretty-printing is enabled).
public void
writeEndObject()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeEndObject.

Method for writing closing marker of an Object value (character '}'; plus possible white space decoration if pretty-printing is enabled).
public void
writeFieldId(long
Field id to write
id
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeFieldId.

Alternative to writeFieldName(String) that may be used in cases where property key is of numeric type; either where underlying format supports such notion (some binary formats do, unlike JSON), or for convenient conversion into String presentation.
public void
writeFieldName(String
Field name to write
name
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeFieldName.

Method for writing a field name (JSON String surrounded by double quotes: syntactically identical to a JSON String value), possibly decorated by white space if pretty-printing is enabled.
public void
writeFieldName(SerializableString
Field name to write
name
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeFieldName.

Method similar to writeFieldName(String), main difference being that it may perform better as some of processing (such as quoting of certain characters, or encoding into external encoding if supported by generator) can be done just once and reused for later calls.
public void
writeNull()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeNull.

Method for outputting literal JSON null value.
public void
writeNumber(short
Number value to write
v
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Method for outputting given value as JSON number.
public void
writeNumber(int
Number value to write
v
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Method for outputting given value as JSON number.
public void
writeNumber(long
Number value to write
v
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Method for outputting given value as JSON number.
public void
writeNumber(BigInteger
Number value to write
v
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Method for outputting given value as JSON number.
public void
writeNumber(double
Number value to write
v
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Method for outputting indicate JSON numeric value.
public void
writeNumber(float
Number value to write
v
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Method for outputting indicate JSON numeric value.
public void
writeNumber(BigDecimal
Number value to write
v
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Method for outputting indicate JSON numeric value.
public void
writeNumber(String
Textual (possibly format) number representation to write
encodedValue
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Write method that can be used for custom numeric types that can not be (easily?) converted to "standard" Java number types.
public void
writeNumber(char[]
Buffer that contains the textual number representation to write
encodedValueBuffer
,
int
Offset of the first character of value to write
offset
,
int
Length of the value (in characters) to write
length
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeNumber.

Overloaded version of writeNumber(String) with same semantics but possibly more efficient operation.
public void
writeObject(Object
Java value (usually POJO) to write
pojo
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeObject.

Older alias for writePOJO(Object)
public void
writeObjectId(Object
Native Object Id to write
id
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeObjectId.

Method that can be called to output so-called native Object Id. Note that it may only be called after ensuring this is legal (with canWriteObjectId()), as not all data formats have native type id support; and some may only allow them in certain positions or locations.
public void
writeObjectRef(Object
Referenced value, for which Object Id is expected to be written
id
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeObjectRef.

Method that can be called to output references to native Object Ids.
public void
writeOmittedField(String
Name of the field omitted
fieldName
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeOmittedField.

Method called to indicate that a property in this position was skipped.
public void
writePOJO(Object
Java value (usually POJO) to write
pojo
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writePOJO.

Method for writing given Java object (POJO) as JSON.
public void
writeRaw(String
Textual contents to include as-is in output.
text
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeRaw.

Method that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).
public void
writeRaw(String
String that has contents to include as-is in output
text
,
int
Offset within text of the first character to output
offset
,
int
Length of content (from text, starting at offset offset) to output
len
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeRaw.

Method that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).
public void
writeRaw(SerializableString
Pre-encoded textual contents to included in output
raw
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeRaw.

Method that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).
public void
writeRaw(char[]
Buffer that has contents to include as-is in output
text
,
int
Offset within text of the first character to output
offset
,
int
Length of content (from text, starting at offset offset) to output
len
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeRaw.

Method that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).
public void
writeRaw(char
Character to included in output
c
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeRaw.

Method that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).
public void
writeRawUTF8String(byte[]
Buffer that contains String value to write
text
,
int
Offset in buffer of the first byte of String value to write
offset
,
int
Length of the String value (in characters) to write
length
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeRawUTF8String.

Method similar to writeString(String) but that takes as its input a UTF-8 encoded String that is to be output as-is, without additional escaping (type of which depends on data format; backslashes for JSON).
public void
writeRawValue(String
Textual contents to included in output
text
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeRawValue.

Method that will force generator to copy input text verbatim without any modifications, but assuming it must constitute a single legal JSON value (number, string, boolean, null, Array or List).
public void
writeRawValue(String text, int offset, int len)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeRawValue.

public void
writeRawValue(char[] text, int offset, int len)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeRawValue.

public void
writeStartArray()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeStartArray.

Method for writing starting marker of a Array value (for JSON this is character '['; plus possible white space decoration if pretty-printing is enabled).
public void
writeStartArray(int
Number of elements this array will have: actual number of values written (before matching call to writeEndArray() MUST match; generator MAY verify this is the case (and SHOULD if format itself encodes length)
size
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeStartArray.

Method for writing start marker of an Array value, similar to writeStartArray(), but also specifying how many elements will be written for the array before calling writeEndArray().
public void
writeStartArray(Object
"Current value" to assign for the Array context being created
forValue
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeStartArray.

Method for writing start marker of an Array value, similar to writeStartArray(), but also specifying the "current value" to assign to the new Array context being created.
public void
writeStartArray(Object
"Current value" to assign for the Array context being created
forValue
,
int
Number of elements this Array will have: actual number of values written (before matching call to writeEndArray() MUST match; generator MAY verify this is the case (and SHOULD if format itself encodes length)
size
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeStartArray.

Method for writing start marker of an Array value, similar to writeStartArray(), but also specifying the "current value" to assign to the new Array context being created as well as how many elements will be written for the array before calling writeEndArray().
public void
writeStartObject()

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeStartObject.

Method for writing starting marker of an Object value (character '{'; plus possible white space decoration if pretty-printing is enabled).
public void
writeStartObject(Object
"Current value" to assign for the Object context being created
forValue
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeStartObject.

Method for writing starting marker of an Object value to represent the given Java Object value.
public void
writeStartObject(Object
"Current value" to assign for the Object context being created
forValue
,
int
Number of key/value pairs this Object will have: actual number of entries written (before matching call to writeEndObject() MUST match; generator MAY verify this is the case (and SHOULD if format itself encodes length)
size
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeStartObject.

Method for writing starting marker of an Object value to represent the given Java Object value.
public void
writeString(String
Text value to write
text
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeString.

Method for outputting a String value.
public void
writeString(Reader
Reader to use for reading Text value to write
reader
,
int
Maximum Length of Text value to read (in chars, non-negative) if known; -1 to indicate "read and write it all"
len
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeString.

Method for outputting a String value.
public void
writeString(char[]
Buffer that contains String value to write
text
,
int
Offset in buffer of the first character of String value to write
offset
,
int
Length of the String value (in characters) to write
len
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeString.

Method for outputting a String value.
public void
writeString(SerializableString
Pre-encoded String value to write
text
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeString.

Method similar to writeString(String), but that takes SerializableString which can make this potentially more efficient to call as generator may be able to reuse quoted and/or encoded representation.
public void
writeTree(TreeNode
TreeNode to write
tree
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeTree.

Method for writing given JSON tree (expressed as a tree where given JsonNode is the root) using this generator.
public void
writeTypeId(Object
Native Type Id to write
id
)

Overrides com.fasterxml.jackson.core.JsonGenerator.writeTypeId.

Method that can be called to output so-called native Type Id. Note that it may only be called after ensuring this is legal (with canWriteTypeId()), as not all data formats have native type id support; and some may only allow them in certain positions or locations.
public void
writeUTF8String(byte[]
Buffer that contains String value to write
text
,
int
Offset in buffer of the first byte of String value to write
offset
,
int
Length of the String value (in characters) to write
length
)

Implements abstract com.fasterxml.jackson.core.JsonGenerator.writeUTF8String.

Method similar to writeString(String) but that takes as its input a UTF-8 encoded String which has not been escaped using whatever escaping scheme data format requires (for JSON that is backslash-escaping for control characters and double-quotes; for other formats something else).
Inherited from com.fasterxml.jackson.core.JsonGenerator:
_copyCurrentContents_copyCurrentFloatValue_copyCurrentFloatValueExact_copyCurrentIntValue_copyCurrentStringValue_reportError_reportUnsupportedOperation_throwInternal_verifyOffsets_writeSimpleObjectconfigurecopyCurrentEventExactgetFormatFeaturesisEnabledwriteArrayFieldStartwriteBinarywriteBinarywriteBinarywriteBinaryFieldwriteBooleanFieldwriteNullFieldwriteNumberFieldwriteNumberFieldwriteNumberFieldwriteNumberFieldwriteNumberFieldwriteNumberFieldwriteNumberFieldwriteObjectFieldwriteObjectFieldStartwritePOJOFieldwriteRawValuewriteStringFieldwriteTypePrefixwriteTypeSuffix