Package | Description |
---|---|
com.fasterxml.jackson.core |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonGenerator )
instances. |
com.fasterxml.jackson.core.base |
Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
|
com.fasterxml.jackson.core.filter | |
com.fasterxml.jackson.core.json |
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
|
com.fasterxml.jackson.core.util |
Utility classes used by Jackson Core functionality.
|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
com.fasterxml.jackson.databind.exc | |
com.fasterxml.jackson.databind.ext |
Contains extended support for "external" packages: things that
may or may not be present in runtime environment, but that are
commonly enough used so that explicit support can be added.
|
com.fasterxml.jackson.databind.jsontype |
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
|
com.fasterxml.jackson.databind.jsontype.impl |
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver . |
com.fasterxml.jackson.databind.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
com.fasterxml.jackson.databind.ser |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.impl |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.std | |
com.fasterxml.jackson.databind.type | |
com.fasterxml.jackson.databind.util |
Utility classes for Mapper package.
|
com.fasterxml.jackson.datatype.jdk8 | |
com.fasterxml.jackson.datatype.jsr310.ser | |
com.fasterxml.jackson.datatype.jsr310.ser.key | |
com.fasterxml.jackson.jaxrs.base | |
com.fasterxml.jackson.jaxrs.cfg | |
com.fasterxml.jackson.module.jaxb.ser |
Modifier and Type | Field and Description |
---|---|
protected JsonGenerator |
JsonGenerationException._processor |
Modifier and Type | Method and Description |
---|---|
protected JsonGenerator |
JsonFactory._createGenerator(Writer out,
IOContext ctxt)
Overridable factory method that actually instantiates generator for
given
Writer and context object. |
protected JsonGenerator |
JsonFactory._createUTF8Generator(OutputStream out,
IOContext ctxt)
Overridable factory method that actually instantiates generator for
given
OutputStream and context object, using UTF-8 encoding. |
JsonGenerator |
JsonGenerator.configure(JsonGenerator.Feature f,
boolean state)
Method for enabling or disabling specified feature:
check
JsonGenerator.Feature for list of available features. |
JsonGenerator |
JsonFactory.createGenerator(DataOutput out)
Convenience method for constructing generator that uses default
encoding of the format (UTF-8 for JSON and most other data formats).
|
JsonGenerator |
JsonFactory.createGenerator(DataOutput out,
JsonEncoding enc)
Method for constructing generator for writing content using specified
DataOutput instance. |
JsonGenerator |
JsonFactory.createGenerator(File f,
JsonEncoding enc)
Method for constructing JSON generator for writing JSON content
to specified file, overwriting contents it might have (or creating
it if such file does not yet exist).
|
JsonGenerator |
JsonFactory.createGenerator(OutputStream out)
Convenience method for constructing generator that uses default
encoding of the format (UTF-8 for JSON and most other data formats).
|
JsonGenerator |
JsonFactory.createGenerator(OutputStream out,
JsonEncoding enc)
Method for constructing JSON generator for writing JSON content
using specified output stream.
|
JsonGenerator |
JsonFactory.createGenerator(Writer w)
Method for constructing JSON generator for writing JSON content
using specified Writer.
|
JsonGenerator |
JsonFactory.createJsonGenerator(OutputStream out)
Deprecated.
Since 2.2, use
JsonFactory.createGenerator(OutputStream) instead. |
JsonGenerator |
JsonFactory.createJsonGenerator(OutputStream out,
JsonEncoding enc)
Deprecated.
Since 2.2, use
JsonFactory.createGenerator(OutputStream, JsonEncoding) instead. |
JsonGenerator |
JsonFactory.createJsonGenerator(Writer out)
Deprecated.
Since 2.2, use
JsonFactory.createGenerator(Writer) instead. |
abstract JsonGenerator |
JsonGenerator.disable(JsonGenerator.Feature f)
Method for disabling specified features
(check
JsonGenerator.Feature for list of features) |
abstract JsonGenerator |
JsonGenerator.enable(JsonGenerator.Feature f)
Method for enabling specified parser features:
check
JsonGenerator.Feature for list of available features. |
JsonGenerator |
JsonGenerationException.getProcessor() |
JsonGenerator |
JsonGenerator.overrideFormatFeatures(int values,
int mask)
Bulk set method for (re)setting states of
FormatFeature s,
by specifying values (set / clear) along with a mask, to determine
which features to change, if any. |
JsonGenerator |
JsonGenerator.overrideStdFeatures(int values,
int mask)
Bulk set method for (re)setting states of features specified by
mask . |
JsonGenerator |
JsonGenerator.setCharacterEscapes(CharacterEscapes esc)
Method for defining custom escapes factory uses for
JsonGenerator s
it creates. |
abstract JsonGenerator |
JsonGenerator.setCodec(ObjectCodec oc)
Method that can be called to set or reset the object to
use for writing Java objects as JsonContent
(using method
writeObject(java.lang.Object) ). |
abstract JsonGenerator |
JsonGenerator.setFeatureMask(int values)
Deprecated.
Since 2.7, use
overrideStdFeatures(int, int) instead -- remove from 2.9 |
JsonGenerator |
JsonGenerator.setHighestNonEscapedChar(int charCode)
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).
|
JsonGenerator |
JsonGenerator.setPrettyPrinter(PrettyPrinter pp)
Method for setting a custom pretty printer, which is usually
used to add indentation for improved human readability.
|
JsonGenerator |
JsonGenerator.setRootValueSeparator(SerializableString sep)
Method that allows overriding String used for separating root-level
JSON values (default is single space character)
|
abstract JsonGenerator |
JsonGenerator.useDefaultPrettyPrinter()
Convenience method for enabling pretty-printing using
the default pretty printer
(
DefaultPrettyPrinter ). |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrinter.beforeArrayValues(JsonGenerator gen)
Method called after array start marker has been output,
and right before the first value is to be output.
|
void |
PrettyPrinter.beforeObjectEntries(JsonGenerator gen)
Method called after object start marker has been output,
and right before the field name of the first entry is
to be output.
|
JsonGenerationException |
JsonGenerationException.withGenerator(JsonGenerator g)
Fluent method that may be used to assign originating
JsonGenerator ,
to be accessed using JsonGenerationException.getProcessor() . |
void |
PrettyPrinter.writeArrayValueSeparator(JsonGenerator gen)
Method called after an array value has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeEndArray(JsonGenerator gen,
int nrOfValues)
Method called after an Array value has been completely output
(minus closing bracket).
|
void |
PrettyPrinter.writeEndObject(JsonGenerator gen,
int nrOfEntries)
Method called after an Object value has been completely output
(minus closing curly bracket).
|
void |
PrettyPrinter.writeObjectEntrySeparator(JsonGenerator gen)
Method called after an object entry (field:value) has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator gen)
Method called after an object field has been output, but
before the value is output.
|
void |
PrettyPrinter.writeRootValueSeparator(JsonGenerator gen)
Method called after a root-level value has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeStartArray(JsonGenerator gen)
Method called when an Array value is to be output, before
any member/child values are output.
|
void |
PrettyPrinter.writeStartObject(JsonGenerator gen)
Method called when an Object value is to be output, before
any fields are output.
|
abstract void |
TreeCodec.writeTree(JsonGenerator g,
TreeNode tree) |
abstract void |
ObjectCodec.writeTree(JsonGenerator gen,
TreeNode tree) |
abstract void |
ObjectCodec.writeValue(JsonGenerator gen,
Object value)
Method to serialize given Java Object, using generator
provided.
|
Constructor and Description |
---|
JsonGenerationException(String msg,
JsonGenerator g) |
JsonGenerationException(String msg,
Throwable rootCause,
JsonGenerator g) |
JsonGenerationException(Throwable rootCause,
JsonGenerator g) |
Modifier and Type | Class and Description |
---|---|
class |
GeneratorBase
This base class implements part of API that a JSON generator exposes
to applications, adds shared internal methods that sub-classes
can use and adds some abstract methods sub-classes must implement.
|
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
GeneratorBase.disable(JsonGenerator.Feature f) |
JsonGenerator |
GeneratorBase.enable(JsonGenerator.Feature f) |
JsonGenerator |
GeneratorBase.overrideStdFeatures(int values,
int mask) |
JsonGenerator |
GeneratorBase.setCodec(ObjectCodec oc) |
JsonGenerator |
GeneratorBase.setFeatureMask(int newMask)
Deprecated.
|
JsonGenerator |
GeneratorBase.useDefaultPrettyPrinter() |
Modifier and Type | Class and Description |
---|---|
class |
FilteringGeneratorDelegate
Specialized
JsonGeneratorDelegate that allows use of
TokenFilter for outputting a subset of content that
caller tries to generate. |
Modifier and Type | Method and Description |
---|---|
TokenFilterContext |
TokenFilterContext.closeArray(JsonGenerator gen) |
TokenFilterContext |
TokenFilterContext.closeObject(JsonGenerator gen) |
void |
TokenFilterContext.writeImmediatePath(JsonGenerator gen)
Variant of
TokenFilterContext.writePath(JsonGenerator) called when all we
need is immediately surrounding Object. |
void |
TokenFilterContext.writePath(JsonGenerator gen)
Method called to ensure that parent path from root is written up to
and including this node.
|
Constructor and Description |
---|
FilteringGeneratorDelegate(JsonGenerator d,
TokenFilter f,
boolean includePath,
boolean allowMultipleMatches) |
Modifier and Type | Class and Description |
---|---|
class |
JsonGeneratorImpl
Intermediate base class shared by JSON-backed generators
like
UTF8JsonGenerator and WriterBasedJsonGenerator . |
class |
UTF8JsonGenerator |
class |
WriterBasedJsonGenerator
JsonGenerator that outputs JSON content using a Writer
which handles character encoding. |
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
JsonGeneratorImpl.disable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorImpl.enable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorImpl.setCharacterEscapes(CharacterEscapes esc) |
JsonGenerator |
JsonGeneratorImpl.setHighestNonEscapedChar(int charCode) |
JsonGenerator |
JsonGeneratorImpl.setRootValueSeparator(SerializableString sep) |
Modifier and Type | Method and Description |
---|---|
static DupDetector |
DupDetector.rootDetector(JsonGenerator g) |
Modifier and Type | Class and Description |
---|---|
class |
JsonGeneratorDelegate |
Modifier and Type | Field and Description |
---|---|
protected JsonGenerator |
JsonGeneratorDelegate.delegate
Delegate object that method calls are delegated to.
|
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
JsonGeneratorDelegate.disable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorDelegate.enable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorDelegate.getDelegate() |
JsonGenerator |
JsonGeneratorDelegate.overrideFormatFeatures(int values,
int mask) |
JsonGenerator |
JsonGeneratorDelegate.overrideStdFeatures(int values,
int mask) |
JsonGenerator |
JsonGeneratorDelegate.setCharacterEscapes(CharacterEscapes esc) |
JsonGenerator |
JsonGeneratorDelegate.setCodec(ObjectCodec oc) |
JsonGenerator |
JsonGeneratorDelegate.setFeatureMask(int mask)
Deprecated.
|
JsonGenerator |
JsonGeneratorDelegate.setHighestNonEscapedChar(int charCode) |
JsonGenerator |
JsonGeneratorDelegate.setPrettyPrinter(PrettyPrinter pp) |
JsonGenerator |
JsonGeneratorDelegate.setRootValueSeparator(SerializableString sep) |
JsonGenerator |
JsonGeneratorDelegate.useDefaultPrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
MinimalPrettyPrinter.beforeArrayValues(JsonGenerator g) |
void |
DefaultPrettyPrinter.beforeArrayValues(JsonGenerator g) |
void |
MinimalPrettyPrinter.beforeObjectEntries(JsonGenerator g) |
void |
DefaultPrettyPrinter.beforeObjectEntries(JsonGenerator g) |
void |
MinimalPrettyPrinter.writeArrayValueSeparator(JsonGenerator g)
Method called after an array value has been completely
output, and before another value is to be output.
|
void |
DefaultPrettyPrinter.writeArrayValueSeparator(JsonGenerator g)
Method called after an array value has been completely
output, and before another value is to be output.
|
void |
MinimalPrettyPrinter.writeEndArray(JsonGenerator g,
int nrOfValues) |
void |
DefaultPrettyPrinter.writeEndArray(JsonGenerator g,
int nrOfValues) |
void |
MinimalPrettyPrinter.writeEndObject(JsonGenerator g,
int nrOfEntries) |
void |
DefaultPrettyPrinter.writeEndObject(JsonGenerator g,
int nrOfEntries) |
void |
DefaultPrettyPrinter.Indenter.writeIndentation(JsonGenerator g,
int level) |
void |
DefaultPrettyPrinter.NopIndenter.writeIndentation(JsonGenerator g,
int level) |
void |
DefaultPrettyPrinter.FixedSpaceIndenter.writeIndentation(JsonGenerator g,
int level) |
void |
DefaultIndenter.writeIndentation(JsonGenerator jg,
int level) |
void |
MinimalPrettyPrinter.writeObjectEntrySeparator(JsonGenerator g)
Method called after an object entry (field:value) has been completely
output, and before another value is to be output.
|
void |
DefaultPrettyPrinter.writeObjectEntrySeparator(JsonGenerator g)
Method called after an object entry (field:value) has been completely
output, and before another value is to be output.
|
void |
MinimalPrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator g)
Method called after an object field has been output, but
before the value is output.
|
void |
DefaultPrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator g)
Method called after an object field has been output, but
before the value is output.
|
void |
MinimalPrettyPrinter.writeRootValueSeparator(JsonGenerator g) |
void |
DefaultPrettyPrinter.writeRootValueSeparator(JsonGenerator g) |
void |
MinimalPrettyPrinter.writeStartArray(JsonGenerator g) |
void |
DefaultPrettyPrinter.writeStartArray(JsonGenerator g) |
void |
MinimalPrettyPrinter.writeStartObject(JsonGenerator g) |
void |
DefaultPrettyPrinter.writeStartObject(JsonGenerator g) |
Constructor and Description |
---|
JsonGeneratorDelegate(JsonGenerator d) |
JsonGeneratorDelegate(JsonGenerator d,
boolean delegateCopyMethods) |
Modifier and Type | Field and Description |
---|---|
protected JsonGenerator |
SequenceWriter._generator |
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
SerializerProvider.getGenerator()
NOTE: current implementation simply returns `null` as generator is not yet
assigned to this provider.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectWriter._configAndWriteValue(JsonGenerator gen,
Object value)
Method called to configure the generator as necessary and then
call write functionality
|
protected void |
ObjectMapper._configAndWriteValue(JsonGenerator g,
Object value)
Method called to configure the generator as necessary and then
call write functionality
|
protected void |
ObjectWriter._configureGenerator(JsonGenerator gen)
Helper method called to set or override settings of passed-in
JsonGenerator |
protected SequenceWriter |
ObjectWriter._newSequenceWriter(boolean wrapInArray,
JsonGenerator gen,
boolean managedInput)
Overridable factory method called by
ObjectWriter.writeValues(OutputStream)
method (and its various overrides), and initializes it as necessary. |
void |
SerializerProvider.defaultSerializeDateKey(Date date,
JsonGenerator gen)
Method that will handle serialization of Dates used as
Map keys,
based on SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS
value (and if using textual representation, configured date format) |
void |
SerializerProvider.defaultSerializeDateKey(long timestamp,
JsonGenerator gen)
Method that will handle serialization of Dates used as
Map keys,
based on SerializationFeature.WRITE_DATE_KEYS_AS_TIMESTAMPS
value (and if using textual representation, configured date format) |
void |
SerializerProvider.defaultSerializeDateValue(Date date,
JsonGenerator gen)
Method that will handle serialization of Date(-like) values, using
SerializationConfig settings to determine expected serialization
behavior. |
void |
SerializerProvider.defaultSerializeDateValue(long timestamp,
JsonGenerator gen)
Method that will handle serialization of Date(-like) values, using
SerializationConfig settings to determine expected serialization
behavior. |
void |
SerializerProvider.defaultSerializeField(String fieldName,
Object value,
JsonGenerator gen)
Convenience method that will serialize given field with specified
value.
|
void |
SerializerProvider.defaultSerializeNull(JsonGenerator gen) |
void |
SerializerProvider.defaultSerializeValue(Object value,
JsonGenerator gen)
Convenience method that will serialize given value (which can be
null) using standard serializer locating functionality.
|
static JsonMappingException |
JsonMappingException.from(JsonGenerator g,
String msg) |
static JsonMappingException |
JsonMappingException.from(JsonGenerator g,
String msg,
Throwable problem) |
void |
SerializationConfig.initialize(JsonGenerator g)
Method called by
ObjectMapper and ObjectWriter
to modify those JsonGenerator.Feature settings
that have been configured via this config instance. |
void |
ObjectWriter.GeneratorSettings.initialize(JsonGenerator gen) |
void |
ObjectWriter.Prefetch.serialize(JsonGenerator gen,
Object value,
DefaultSerializerProvider prov) |
void |
JsonSerializable.serialize(JsonGenerator gen,
SerializerProvider serializers)
Serialization method called when no additional type information is
to be included in serialization.
|
abstract void |
JsonSerializer.serialize(T value,
JsonGenerator gen,
SerializerProvider serializers)
Method that can be called to ask implementation to serialize
values of type this serializer handles.
|
void |
JsonSerializable.serializeWithType(JsonGenerator gen,
SerializerProvider serializers,
TypeSerializer typeSer)
Serialization method called when additional type information is
expected to be included in serialization, for deserialization to use.
|
void |
JsonSerializer.serializeWithType(T value,
JsonGenerator gen,
SerializerProvider serializers,
TypeSerializer typeSer)
Method that can be called to ask implementation to serialize
values of type this serializer handles, using specified type serializer
for embedding necessary type information.
|
void |
ObjectMapper.writeTree(JsonGenerator jgen,
JsonNode rootNode)
Method to serialize given JSON Tree, using generator
provided.
|
void |
ObjectReader.writeTree(JsonGenerator g,
TreeNode rootNode) |
void |
ObjectMapper.writeTree(JsonGenerator jgen,
TreeNode rootNode) |
void |
ObjectWriter.writeValue(JsonGenerator gen,
Object value)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator . |
void |
ObjectReader.writeValue(JsonGenerator gen,
Object value) |
void |
ObjectMapper.writeValue(JsonGenerator g,
Object value)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator . |
SequenceWriter |
ObjectWriter.writeValues(JsonGenerator gen)
Method for creating a
SequenceWriter to write a sequence of root
values using configuration of this ObjectWriter . |
SequenceWriter |
ObjectWriter.writeValuesAsArray(JsonGenerator gen)
Method for creating a
SequenceWriter to write an array of
root-level values, using configuration of this ObjectWriter . |
Constructor and Description |
---|
SequenceWriter(DefaultSerializerProvider prov,
JsonGenerator gen,
boolean closeGenerator,
ObjectWriter.Prefetch prefetch) |
Modifier and Type | Method and Description |
---|---|
static InvalidDefinitionException |
InvalidDefinitionException.from(JsonGenerator g,
String msg,
BeanDescription bean,
BeanPropertyDefinition prop) |
static InvalidDefinitionException |
InvalidDefinitionException.from(JsonGenerator g,
String msg,
JavaType type) |
Constructor and Description |
---|
InvalidDefinitionException(JsonGenerator g,
String msg,
BeanDescription bean,
BeanPropertyDefinition prop) |
InvalidDefinitionException(JsonGenerator g,
String msg,
JavaType type) |
Modifier and Type | Method and Description |
---|---|
void |
DOMSerializer.serialize(Node value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
NioPathSerializer.serialize(Path value,
JsonGenerator gen,
SerializerProvider serializers) |
void |
CoreXMLSerializers.XMLGregorianCalendarSerializer.serialize(XMLGregorianCalendar value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NioPathSerializer.serializeWithType(Path value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
CoreXMLSerializers.XMLGregorianCalendarSerializer.serializeWithType(XMLGregorianCalendar value,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Method and Description |
---|---|
protected void |
AsExternalTypeSerializer._writeArrayPrefix(Object value,
JsonGenerator g) |
protected void |
AsExternalTypeSerializer._writeArraySuffix(Object value,
JsonGenerator g,
String typeId) |
protected void |
AsExternalTypeSerializer._writeObjectPrefix(Object value,
JsonGenerator g) |
protected void |
AsExternalTypeSerializer._writeObjectSuffix(Object value,
JsonGenerator g,
String typeId) |
protected void |
AsExternalTypeSerializer._writeScalarPrefix(Object value,
JsonGenerator g) |
protected void |
AsExternalTypeSerializer._writeScalarSuffix(Object value,
JsonGenerator g,
String typeId) |
protected void |
AsWrapperTypeSerializer._writeTypeId(JsonGenerator g,
String typeId) |
WritableTypeId |
TypeSerializerBase.writeTypePrefix(JsonGenerator g,
WritableTypeId idMetadata) |
WritableTypeId |
TypeSerializerBase.writeTypeSuffix(JsonGenerator g,
WritableTypeId idMetadata) |
Modifier and Type | Method and Description |
---|---|
void |
TextNode.serialize(JsonGenerator g,
SerializerProvider provider) |
void |
ShortNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
POJONode.serialize(JsonGenerator gen,
SerializerProvider ctxt) |
void |
ObjectNode.serialize(JsonGenerator g,
SerializerProvider provider)
Method that can be called to serialize this node and
all of its descendants using specified JSON generator.
|
void |
NullNode.serialize(JsonGenerator g,
SerializerProvider provider) |
void |
MissingNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
LongNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
IntNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
FloatNode.serialize(JsonGenerator g,
SerializerProvider provider) |
void |
DoubleNode.serialize(JsonGenerator g,
SerializerProvider provider) |
void |
DecimalNode.serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
BooleanNode.serialize(JsonGenerator g,
SerializerProvider provider) |
void |
BinaryNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
BigIntegerNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
abstract void |
BaseJsonNode.serialize(JsonGenerator jgen,
SerializerProvider provider)
Method called to serialize node instances using given generator.
|
void |
ArrayNode.serialize(JsonGenerator f,
SerializerProvider provider) |
void |
ValueNode.serializeWithType(JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
ObjectNode.serializeWithType(JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
MissingNode.serializeWithType(JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
abstract void |
BaseJsonNode.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
Type information is needed, even if JsonNode instances are "plain" JSON,
since they may be mixed with other types.
|
void |
ArrayNode.serializeWithType(JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Field and Description |
---|---|
protected JsonGenerator |
DefaultSerializerProvider._generator
Generator used for serialization.
|
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
DefaultSerializerProvider.getGenerator()
Accessor for the
JsonGenerator currently in use for serializing
content. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
BeanPropertyWriter._handleSelfReference(Object bean,
JsonGenerator gen,
SerializerProvider prov,
JsonSerializer<?> ser)
Method called to handle a direct self-reference through this property.
|
protected void |
DefaultSerializerProvider._serializeNull(JsonGenerator gen)
Helper method called when root value to serialize is null
|
void |
AnyGetterWriter.getAndFilter(Object bean,
JsonGenerator gen,
SerializerProvider provider,
PropertyFilter filter) |
void |
AnyGetterWriter.getAndSerialize(Object bean,
JsonGenerator gen,
SerializerProvider provider) |
void |
BeanSerializer.serialize(Object bean,
JsonGenerator gen,
SerializerProvider provider)
Main serialization method that will delegate actual output to
configured
BeanPropertyWriter instances. |
void |
VirtualBeanPropertyWriter.serializeAsElement(Object bean,
JsonGenerator gen,
SerializerProvider prov) |
abstract void |
PropertyWriter.serializeAsElement(Object value,
JsonGenerator jgen,
SerializerProvider provider)
Serialization method called when output is to be done as an array,
that is, not using property names.
|
void |
BeanPropertyWriter.serializeAsElement(Object bean,
JsonGenerator gen,
SerializerProvider prov)
Alternative to
BeanPropertyWriter.serializeAsField(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider) that is used when a POJO is
serialized as JSON Array; the difference is that no field names are
written. |
void |
PropertyFilter.serializeAsElement(Object elementValue,
JsonGenerator gen,
SerializerProvider prov,
PropertyWriter writer)
Method called by container to let the filter decide what to do with given element
value:
the usual choices are to either filter out (i.e.
|
void |
VirtualBeanPropertyWriter.serializeAsField(Object bean,
JsonGenerator gen,
SerializerProvider prov) |
abstract void |
PropertyWriter.serializeAsField(Object value,
JsonGenerator jgen,
SerializerProvider provider)
The main serialization method called by filter when property is to be written normally.
|
void |
BeanPropertyWriter.serializeAsField(Object bean,
JsonGenerator gen,
SerializerProvider prov)
Method called to access property that this bean stands for, from within
given bean, and to serialize it as a JSON Object field using appropriate
serializer.
|
void |
BeanPropertyFilter.serializeAsField(Object pojo,
JsonGenerator jgen,
SerializerProvider prov,
BeanPropertyWriter writer)
Deprecated.
Method called by
BeanSerializer to let filter decide what to do with
given bean property value: the usual choices are to either filter out (i.e. |
void |
PropertyFilter.serializeAsField(Object pojo,
JsonGenerator gen,
SerializerProvider prov,
PropertyWriter writer)
Method called by
BeanSerializer to let the filter decide what to do with
given bean property value:
the usual choices are to either filter out (i.e. |
abstract void |
PropertyWriter.serializeAsOmittedField(Object value,
JsonGenerator jgen,
SerializerProvider provider)
Serialization method that filter needs to call in cases where property is to be
filtered, but the underlying data format requires a placeholder of some kind.
|
void |
BeanPropertyWriter.serializeAsOmittedField(Object bean,
JsonGenerator gen,
SerializerProvider prov)
Method called to indicate that serialization of a field was omitted due
to filtering, in cases where backend data format does not allow basic
omission.
|
abstract void |
PropertyWriter.serializeAsPlaceholder(Object value,
JsonGenerator jgen,
SerializerProvider provider)
Serialization method called when doing tabular (positional) output from databind,
but then value is to be omitted.
|
void |
BeanPropertyWriter.serializeAsPlaceholder(Object bean,
JsonGenerator gen,
SerializerProvider prov)
Method called to serialize a placeholder used in tabular output when real
value is not to be included (is filtered out), but when we need an entry
so that field indexes will not be off.
|
void |
DefaultSerializerProvider.serializePolymorphic(JsonGenerator gen,
Object value,
JavaType rootType,
JsonSerializer<Object> valueSer,
TypeSerializer typeSer)
Alternate serialization call used for polymorphic types, when
TypeSerializer
is already known, but the actual serializer may or may not be. |
void |
DefaultSerializerProvider.serializeValue(JsonGenerator gen,
Object value)
The method to be called by
ObjectMapper and ObjectWriter
for serializing given value, using serializers that
this provider has access to (via caching and/or creating new serializers
as need be). |
void |
DefaultSerializerProvider.serializeValue(JsonGenerator gen,
Object value,
JavaType rootType)
The method to be called by
ObjectMapper and ObjectWriter
for serializing given value (assumed to be of specified root type,
instead of runtime type of value),
using serializers that
this provider has access to (via caching and/or creating new serializers
as need be), |
void |
DefaultSerializerProvider.serializeValue(JsonGenerator gen,
Object value,
JavaType rootType,
JsonSerializer<Object> ser)
The method to be called by
ObjectWriter
for serializing given value (assumed to be of specified root type,
instead of runtime type of value), when it may know specific
JsonSerializer to use. |
protected abstract Object |
VirtualBeanPropertyWriter.value(Object bean,
JsonGenerator gen,
SerializerProvider prov)
Method called to figure out the value to serialize.
|
Modifier and Type | Method and Description |
---|---|
protected void |
IteratorSerializer._serializeDynamicContents(Iterator<?> value,
JsonGenerator g,
SerializerProvider provider) |
void |
StringCollectionSerializer.serialize(Collection<String> value,
JsonGenerator g,
SerializerProvider provider) |
void |
IteratorSerializer.serialize(Iterator<?> value,
JsonGenerator gen,
SerializerProvider provider) |
void |
IndexedListSerializer.serialize(List<?> value,
JsonGenerator gen,
SerializerProvider provider) |
void |
IndexedStringListSerializer.serialize(List<String> value,
JsonGenerator g,
SerializerProvider provider) |
void |
MapEntrySerializer.serialize(Map.Entry<?,?> value,
JsonGenerator gen,
SerializerProvider provider) |
void |
UnwrappingBeanSerializer.serialize(Object bean,
JsonGenerator gen,
SerializerProvider provider)
Main serialization method that will delegate actual output to
configured
BeanPropertyWriter instances. |
void |
UnknownSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
TypeWrappedSerializer.serialize(Object value,
JsonGenerator g,
SerializerProvider provider) |
void |
FailingSerializer.serialize(Object value,
JsonGenerator g,
SerializerProvider provider) |
void |
BeanAsArraySerializer.serialize(Object bean,
JsonGenerator gen,
SerializerProvider provider)
Main serialization method that will delegate actual output to
configured
BeanPropertyWriter instances. |
void |
StringArraySerializer.serialize(String[] value,
JsonGenerator gen,
SerializerProvider provider) |
protected void |
BeanAsArraySerializer.serializeAsArray(Object bean,
JsonGenerator gen,
SerializerProvider provider) |
void |
SimpleBeanPropertyFilter.serializeAsElement(Object elementValue,
JsonGenerator jgen,
SerializerProvider provider,
PropertyWriter writer) |
void |
UnwrappingBeanPropertyWriter.serializeAsField(Object bean,
JsonGenerator gen,
SerializerProvider prov) |
void |
SimpleBeanPropertyFilter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer)
Deprecated.
|
void |
SimpleBeanPropertyFilter.serializeAsField(Object pojo,
JsonGenerator jgen,
SerializerProvider provider,
PropertyWriter writer) |
void |
IteratorSerializer.serializeContents(Iterator<?> value,
JsonGenerator g,
SerializerProvider provider) |
void |
IndexedListSerializer.serializeContents(List<?> value,
JsonGenerator g,
SerializerProvider provider) |
void |
StringArraySerializer.serializeContents(String[] value,
JsonGenerator gen,
SerializerProvider provider) |
void |
IndexedListSerializer.serializeContentsUsing(List<?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser) |
protected void |
MapEntrySerializer.serializeDynamic(Map.Entry<?,?> value,
JsonGenerator gen,
SerializerProvider provider) |
void |
IndexedListSerializer.serializeTypedContents(List<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StringCollectionSerializer.serializeWithType(Collection<String> value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
IndexedStringListSerializer.serializeWithType(List<String> value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
MapEntrySerializer.serializeWithType(Map.Entry<?,?> value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
UnwrappingBeanSerializer.serializeWithType(Object bean,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
UnknownSerializer.serializeWithType(Object value,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
TypeWrappedSerializer.serializeWithType(Object value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
BeanAsArraySerializer.serializeWithType(Object bean,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
protected Object |
AttributePropertyWriter.value(Object bean,
JsonGenerator jgen,
SerializerProvider prov) |
void |
WritableObjectId.writeAsField(JsonGenerator gen,
SerializerProvider provider,
ObjectIdWriter w)
Method called to output Object Id as specified.
|
boolean |
WritableObjectId.writeAsId(JsonGenerator gen,
SerializerProvider provider,
ObjectIdWriter w) |
Modifier and Type | Method and Description |
---|---|
protected Map<?,?> |
MapSerializer._orderEntries(Map<?,?> input,
JsonGenerator gen,
SerializerProvider provider) |
protected void |
DateTimeSerializerBase._serializeAsString(Date value,
JsonGenerator g,
SerializerProvider provider) |
protected void |
BeanSerializerBase._serializeObjectId(Object bean,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer,
WritableObjectId objectId) |
protected void |
BeanSerializerBase._serializeWithObjectId(Object bean,
JsonGenerator gen,
SerializerProvider provider,
boolean startEndObject) |
protected void |
BeanSerializerBase._serializeWithObjectId(Object bean,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
protected void |
MapSerializer._writeNullKeyedEntry(JsonGenerator gen,
SerializerProvider provider,
Object value) |
void |
StdJdkSerializers.AtomicBooleanSerializer.serialize(AtomicBoolean value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StdJdkSerializers.AtomicIntegerSerializer.serialize(AtomicInteger value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StdJdkSerializers.AtomicLongSerializer.serialize(AtomicLong value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StdArraySerializers.BooleanArraySerializer.serialize(boolean[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
ByteArraySerializer.serialize(byte[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
ByteBufferSerializer.serialize(ByteBuffer bbuf,
JsonGenerator gen,
SerializerProvider provider) |
void |
CalendarSerializer.serialize(Calendar value,
JsonGenerator g,
SerializerProvider provider) |
void |
StdArraySerializers.CharArraySerializer.serialize(char[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
ClassSerializer.serialize(Class<?> value,
JsonGenerator g,
SerializerProvider provider) |
void |
CollectionSerializer.serialize(Collection<?> value,
JsonGenerator g,
SerializerProvider provider) |
void |
SqlDateSerializer.serialize(Date value,
JsonGenerator g,
SerializerProvider provider) |
void |
DateSerializer.serialize(Date value,
JsonGenerator g,
SerializerProvider provider) |
void |
StdArraySerializers.DoubleArraySerializer.serialize(double[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
EnumSerializer.serialize(Enum<?> en,
JsonGenerator gen,
SerializerProvider serializers) |
void |
EnumSetSerializer.serialize(EnumSet<? extends Enum<?>> value,
JsonGenerator gen,
SerializerProvider provider) |
void |
FileSerializer.serialize(File value,
JsonGenerator g,
SerializerProvider provider) |
void |
StdArraySerializers.FloatArraySerializer.serialize(float[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
InetAddressSerializer.serialize(InetAddress value,
JsonGenerator g,
SerializerProvider provider) |
void |
InetSocketAddressSerializer.serialize(InetSocketAddress value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.IntArraySerializer.serialize(int[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
IterableSerializer.serialize(Iterable<?> value,
JsonGenerator gen,
SerializerProvider provider) |
void |
SerializableSerializer.serialize(JsonSerializable value,
JsonGenerator gen,
SerializerProvider serializers) |
void |
StdArraySerializers.LongArraySerializer.serialize(long[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
MapSerializer.serialize(Map<?,?> value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NumberSerializer.serialize(Number value,
JsonGenerator g,
SerializerProvider provider) |
void |
ObjectArraySerializer.serialize(Object[] value,
JsonGenerator gen,
SerializerProvider provider) |
void |
ToStringSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StringSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StdKeySerializers.Default.serialize(Object value,
JsonGenerator g,
SerializerProvider provider) |
void |
StdKeySerializers.Dynamic.serialize(Object value,
JsonGenerator g,
SerializerProvider provider) |
void |
StdKeySerializers.StringKeySerializer.serialize(Object value,
JsonGenerator g,
SerializerProvider provider) |
void |
StdKeySerializers.EnumKeySerializer.serialize(Object value,
JsonGenerator g,
SerializerProvider serializers) |
void |
StdKeySerializer.serialize(Object value,
JsonGenerator g,
SerializerProvider provider)
Deprecated.
|
void |
StdDelegatingSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NumberSerializers.ShortSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NumberSerializers.IntegerSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NumberSerializers.IntLikeSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NumberSerializers.LongSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NumberSerializers.FloatSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NumberSerializers.DoubleSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
NullSerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
JsonValueSerializer.serialize(Object bean,
JsonGenerator gen,
SerializerProvider prov) |
void |
BooleanSerializer.serialize(Object value,
JsonGenerator g,
SerializerProvider provider) |
abstract void |
BeanSerializerBase.serialize(Object bean,
JsonGenerator gen,
SerializerProvider provider) |
void |
StdArraySerializers.ShortArraySerializer.serialize(short[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
SqlTimeSerializer.serialize(Time value,
JsonGenerator g,
SerializerProvider provider) |
void |
TimeZoneSerializer.serialize(TimeZone value,
JsonGenerator g,
SerializerProvider provider) |
abstract void |
StdSerializer.serialize(T value,
JsonGenerator gen,
SerializerProvider provider) |
void |
ReferenceTypeSerializer.serialize(T ref,
JsonGenerator g,
SerializerProvider provider) |
void |
RawSerializer.serialize(T value,
JsonGenerator jgen,
SerializerProvider provider) |
abstract void |
DateTimeSerializerBase.serialize(T value,
JsonGenerator gen,
SerializerProvider serializers) |
void |
AsArraySerializerBase.serialize(T value,
JsonGenerator gen,
SerializerProvider provider) |
void |
ArraySerializerBase.serialize(T value,
JsonGenerator gen,
SerializerProvider provider) |
void |
TokenBufferSerializer.serialize(TokenBuffer value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
UUIDSerializer.serialize(UUID value,
JsonGenerator gen,
SerializerProvider provider) |
void |
MapProperty.serializeAsElement(Object map,
JsonGenerator gen,
SerializerProvider provider) |
void |
MapProperty.serializeAsField(Object map,
JsonGenerator gen,
SerializerProvider provider) |
void |
MapProperty.serializeAsOmittedField(Object map,
JsonGenerator gen,
SerializerProvider provider) |
void |
MapProperty.serializeAsPlaceholder(Object value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StdArraySerializers.BooleanArraySerializer.serializeContents(boolean[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
CollectionSerializer.serializeContents(Collection<?> value,
JsonGenerator g,
SerializerProvider provider) |
void |
StdArraySerializers.DoubleArraySerializer.serializeContents(double[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
EnumSetSerializer.serializeContents(EnumSet<? extends Enum<?>> value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StdArraySerializers.FloatArraySerializer.serializeContents(float[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
StdArraySerializers.IntArraySerializer.serializeContents(int[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
IterableSerializer.serializeContents(Iterable<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.LongArraySerializer.serializeContents(long[] value,
JsonGenerator g,
SerializerProvider provider) |
void |
ObjectArraySerializer.serializeContents(Object[] value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StdArraySerializers.ShortArraySerializer.serializeContents(short[] value,
JsonGenerator g,
SerializerProvider provider) |
protected abstract void |
AsArraySerializerBase.serializeContents(T value,
JsonGenerator gen,
SerializerProvider provider) |
protected abstract void |
ArraySerializerBase.serializeContents(T value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
CollectionSerializer.serializeContentsUsing(Collection<?> value,
JsonGenerator g,
SerializerProvider provider,
JsonSerializer<Object> ser) |
void |
ObjectArraySerializer.serializeContentsUsing(Object[] value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser) |
void |
MapSerializer.serializeFields(Map<?,?> value,
JsonGenerator gen,
SerializerProvider provider)
General-purpose serialization for contents, where we do not necessarily know
the value serialization, but
we do know that no value suppression is needed (which simplifies processing a bit)
|
protected void |
BeanSerializerBase.serializeFields(Object bean,
JsonGenerator gen,
SerializerProvider provider) |
protected void |
BeanSerializerBase.serializeFieldsFiltered(Object bean,
JsonGenerator gen,
SerializerProvider provider)
Alternative serialization method that gets called when there is a
PropertyFilter that needs to be called to determine
which properties are to be serialized (and possibly how) |
void |
MapSerializer.serializeFieldsUsing(Map<?,?> value,
JsonGenerator gen,
SerializerProvider provider,
JsonSerializer<Object> ser)
Method called to serialize fields, when the value type is statically known,
so that value serializer is passed and does not need to be fetched from
provider.
|
void |
MapSerializer.serializeFilteredAnyProperties(SerializerProvider provider,
JsonGenerator gen,
Object bean,
Map<?,?> value,
PropertyFilter filter,
Object suppressableValue)
Helper method used when we have a JSON Filter to use AND contents are
"any properties" of a POJO.
|
void |
MapSerializer.serializeFilteredFields(Map<?,?> value,
JsonGenerator gen,
SerializerProvider provider,
PropertyFilter filter,
Object suppressableValue)
Helper method used when we have a JSON Filter to use for potentially
filtering out Map entries.
|
void |
MapSerializer.serializeOptionalFields(Map<?,?> value,
JsonGenerator gen,
SerializerProvider provider,
Object suppressableValue)
Serialization method called when exclusion filtering needs to be applied.
|
void |
ObjectArraySerializer.serializeTypedContents(Object[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
MapSerializer.serializeTypedFields(Map<?,?> value,
JsonGenerator gen,
SerializerProvider provider,
Object suppressableValue) |
void |
ByteArraySerializer.serializeWithType(byte[] value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
StdArraySerializers.CharArraySerializer.serializeWithType(char[] value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
InetAddressSerializer.serializeWithType(InetAddress value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
InetSocketAddressSerializer.serializeWithType(InetSocketAddress value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
SerializableSerializer.serializeWithType(JsonSerializable value,
JsonGenerator gen,
SerializerProvider serializers,
TypeSerializer typeSer) |
void |
MapSerializer.serializeWithType(Map<?,?> value,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
ToStringSerializer.serializeWithType(Object value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer)
Default implementation will write type prefix, call regular serialization
method (since assumption is that value itself does not need JSON
Array or Object start/end markers), and then write type suffix.
|
void |
StringSerializer.serializeWithType(Object value,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
StdDelegatingSerializer.serializeWithType(Object value,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
NumberSerializers.IntegerSerializer.serializeWithType(Object value,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
NumberSerializers.DoubleSerializer.serializeWithType(Object value,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
NullSerializer.serializeWithType(Object value,
JsonGenerator gen,
SerializerProvider serializers,
TypeSerializer typeSer)
Although this method should rarely get called, for convenience we should override
it, and handle it same way as "natural" types: by serializing exactly as is,
without type decorations.
|
void |
JsonValueSerializer.serializeWithType(Object bean,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer0) |
void |
BooleanSerializer.serializeWithType(Object value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
BeanSerializerBase.serializeWithType(Object bean,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
TimeZoneSerializer.serializeWithType(TimeZone value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
StdScalarSerializer.serializeWithType(T value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer)
Default implementation will write type prefix, call regular serialization
method (since assumption is that value itself does not need JSON
Array or Object start/end markers), and then write type suffix.
|
abstract void |
StaticListSerializerBase.serializeWithType(T value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
ReferenceTypeSerializer.serializeWithType(T ref,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
RawSerializer.serializeWithType(T value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
NonTypedScalarSerializerBase.serializeWithType(T value,
JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer)
Deprecated.
|
void |
AsArraySerializerBase.serializeWithType(T value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
ArraySerializerBase.serializeWithType(T value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
TokenBufferSerializer.serializeWithType(TokenBuffer value,
JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer)
Implementing typed output for contents of a TokenBuffer is very tricky,
since we do not know for sure what its contents might look like (or, rather,
we do know when serializing, but not necessarily when deserializing!)
One possibility would be to check the current token, and use that to
determine if we would output JSON Array, Object or scalar value.
|
Modifier and Type | Method and Description |
---|---|
void |
TypeBase.serialize(JsonGenerator gen,
SerializerProvider provider) |
void |
TypeBase.serializeWithType(JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Class and Description |
---|---|
class |
TokenBuffer
Utility class used for efficient storage of
JsonToken
sequences, needed for temporary buffering. |
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
TokenBuffer.disable(JsonGenerator.Feature f) |
JsonGenerator |
TokenBuffer.enable(JsonGenerator.Feature f) |
JsonGenerator |
TokenBuffer.overrideStdFeatures(int values,
int mask) |
JsonGenerator |
TokenBuffer.setCodec(ObjectCodec oc) |
JsonGenerator |
TokenBuffer.setFeatureMask(int mask)
Deprecated.
|
JsonGenerator |
TokenBuffer.useDefaultPrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
protected void |
RawValue._serialize(JsonGenerator gen) |
static void |
ClassUtil.closeOnFailAndThrowAsIOE(JsonGenerator g,
Closeable toClose,
Exception fail)
Helper method that encapsulate logic in trying to close given
Closeable
in case of failure; useful mostly in forcing flush()ing as otherwise
error conditions tend to be hard to diagnose. |
static void |
ClassUtil.closeOnFailAndThrowAsIOE(JsonGenerator g,
Exception fail)
Helper method that encapsulate logic in trying to close output generator
in case of failure; useful mostly in forcing flush()ing as otherwise
error conditions tend to be hard to diagnose.
|
void |
TokenBuffer.serialize(JsonGenerator gen)
Helper method that will write all contents of this buffer
using given
JsonGenerator . |
void |
RawValue.serialize(JsonGenerator gen) |
void |
RawValue.serialize(JsonGenerator gen,
SerializerProvider serializers) |
void |
JSONWrappedObject.serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
JSONPObject.serialize(JsonGenerator gen,
SerializerProvider provider) |
void |
RawValue.serializeWithType(JsonGenerator gen,
SerializerProvider serializers,
TypeSerializer typeSer) |
void |
JSONWrappedObject.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
JSONPObject.serializeWithType(JsonGenerator gen,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Method and Description |
---|---|
void |
DoubleStreamSerializer.serialize(DoubleStream stream,
JsonGenerator jgen,
SerializerProvider provider) |
void |
IntStreamSerializer.serialize(IntStream stream,
JsonGenerator jgen,
SerializerProvider provider) |
void |
LongStreamSerializer.serialize(LongStream stream,
JsonGenerator jgen,
SerializerProvider provider) |
void |
OptionalDoubleSerializer.serialize(OptionalDouble value,
JsonGenerator gen,
SerializerProvider provider) |
void |
StreamSerializer.serialize(Stream<?> stream,
JsonGenerator jgen,
SerializerProvider provider) |
void |
Jdk8UnwrappingOptionalBeanPropertyWriter.serializeAsField(Object bean,
JsonGenerator gen,
SerializerProvider prov) |
void |
Jdk8OptionalBeanPropertyWriter.serializeAsField(Object bean,
JsonGenerator g,
SerializerProvider prov) |
Modifier and Type | Method and Description |
---|---|
void |
Jsr310NullKeySerializer.serialize(Object value,
JsonGenerator gen,
SerializerProvider serializers) |
void |
ZonedDateTimeKeySerializer.serialize(ZonedDateTime value,
JsonGenerator gen,
SerializerProvider serializers) |
Modifier and Type | Method and Description |
---|---|
protected JsonGenerator |
ProviderBase._createGenerator(ObjectWriter writer,
OutputStream rawStream,
JsonEncoding enc)
Overridable helper method called to create a
JsonGenerator for writing
contents into given raw OutputStream . |
Modifier and Type | Method and Description |
---|---|
abstract ObjectWriter |
ObjectWriterModifier.modify(EndpointConfigBase<?> endpoint,
MultivaluedMap<String,Object> responseHeaders,
Object valueToWrite,
ObjectWriter w,
JsonGenerator g)
Method called to let modifier make any changes it wants to to objects
used for writing response for specified endpoint.
|
Modifier and Type | Method and Description |
---|---|
void |
DataHandlerJsonSerializer.serialize(DataHandler value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
DomElementJsonSerializer.serialize(Element value,
JsonGenerator jgen,
SerializerProvider provider) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.