Package | Description |
---|---|
org.codehaus.jackson |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.impl |
Parser and generator implementation classes that Jackson
defines and uses.
|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
org.codehaus.jackson.map.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.
|
org.codehaus.jackson.map.jsontype.impl |
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver . |
org.codehaus.jackson.map.ser |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.map.ser.impl |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.map.ser.std | |
org.codehaus.jackson.map.type | |
org.codehaus.jackson.map.util |
Utility classes for Mapper package.
|
org.codehaus.jackson.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
org.codehaus.jackson.smile |
Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
|
org.codehaus.jackson.util |
Utility classes used by Jackson Core functionality.
|
org.codehaus.jackson.xc |
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
|
Modifier and Type | Method and Description |
---|---|
protected JsonGenerator |
JsonFactory._createJsonGenerator(Writer out,
IOContext ctxt)
Overridable factory method that actually instantiates generator for
given
Writer and context object. |
protected JsonGenerator |
JsonFactory._createUTF8JsonGenerator(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.createJsonGenerator(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.createJsonGenerator(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.createJsonGenerator(OutputStream out,
JsonEncoding enc)
Method for constructing JSON generator for writing JSON content
using specified output stream.
|
JsonGenerator |
JsonFactory.createJsonGenerator(Writer out)
Method for constructing JSON generator for writing JSON content
using specified Writer.
|
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 |
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) ). |
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.
|
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 jg)
Method called after array start marker has been output,
and right before the first value is to be output.
|
void |
PrettyPrinter.beforeObjectEntries(JsonGenerator jg)
Method called after object start marker has been output,
and right before the field name of the first entry is
to be output.
|
void |
PrettyPrinter.writeArrayValueSeparator(JsonGenerator jg)
Method called after an array value has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeEndArray(JsonGenerator jg,
int nrOfValues)
Method called after an Array value has been completely output
(minus closing bracket).
|
void |
PrettyPrinter.writeEndObject(JsonGenerator jg,
int nrOfEntries)
Method called after an Object value has been completely output
(minus closing curly bracket).
|
void |
PrettyPrinter.writeObjectEntrySeparator(JsonGenerator jg)
Method called after an object entry (field:value) has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator jg)
Method called after an object field has been output, but
before the value is output.
|
void |
PrettyPrinter.writeRootValueSeparator(JsonGenerator jg)
Method called after a root-level value has been completely
output, and before another value is to be output.
|
void |
PrettyPrinter.writeStartArray(JsonGenerator jg)
Method called when an Array value is to be output, before
any member/child values are output.
|
void |
PrettyPrinter.writeStartObject(JsonGenerator jg)
Method called when an Object value is to be output, before
any fields are output.
|
abstract void |
ObjectCodec.writeTree(JsonGenerator jgen,
JsonNode rootNode)
Method to serialize given Json Tree, using generator
provided.
|
abstract void |
ObjectCodec.writeValue(JsonGenerator jgen,
Object value)
Method to serialize given Java Object, using generator
provided.
|
Modifier and Type | Class and Description |
---|---|
class |
JsonGeneratorBase
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.
|
class |
Utf8Generator |
class |
WriterBasedGenerator
JsonGenerator that outputs JSON content using a Writer
which handles character encoding. |
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
JsonGeneratorBase.disable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorBase.enable(JsonGenerator.Feature f) |
JsonGenerator |
WriterBasedGenerator.setCharacterEscapes(CharacterEscapes esc) |
JsonGenerator |
Utf8Generator.setCharacterEscapes(CharacterEscapes esc) |
JsonGenerator |
JsonGeneratorBase.setCodec(ObjectCodec oc) |
JsonGenerator |
WriterBasedGenerator.setHighestNonEscapedChar(int charCode) |
JsonGenerator |
Utf8Generator.setHighestNonEscapedChar(int charCode) |
JsonGenerator |
JsonGeneratorBase.useDefaultPrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
Indenter.writeIndentation(JsonGenerator jg,
int level) |
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectWriter._configAndWriteValue(JsonGenerator jgen,
Object value)
Method called to configure the generator as necessary and then
call write functionality
|
protected void |
ObjectMapper._configAndWriteValue(JsonGenerator jgen,
Object value)
Method called to configure the generator as necessary and then
call write functionality
|
protected void |
ObjectMapper._configAndWriteValue(JsonGenerator jgen,
Object value,
Class<?> viewClass) |
abstract void |
SerializerProvider.defaultSerializeDateKey(Date date,
JsonGenerator jgen)
Method that will handle serialization of Dates used as
Map keys,
based on SerializationConfig.Feature.WRITE_DATE_KEYS_AS_TIMESTAMPS
value (and if using textual representation, configured date format) |
abstract void |
SerializerProvider.defaultSerializeDateKey(long timestamp,
JsonGenerator jgen)
Method that will handle serialization of Dates used as
Map keys,
based on SerializationConfig.Feature.WRITE_DATE_KEYS_AS_TIMESTAMPS
value (and if using textual representation, configured date format) |
abstract void |
SerializerProvider.defaultSerializeDateValue(Date date,
JsonGenerator jgen)
Method that will handle serialization of Date(-like) values, using
SerializationConfig settings to determine expected serialization
behavior. |
abstract void |
SerializerProvider.defaultSerializeDateValue(long timestamp,
JsonGenerator jgen)
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 jgen)
Convenience method that will serialize given field with specified
value.
|
void |
SerializerProvider.defaultSerializeNull(JsonGenerator jgen) |
void |
SerializerProvider.defaultSerializeValue(Object value,
JsonGenerator jgen)
Convenience method that will serialize given value (which can be
null) using standard serializer locating functionality.
|
void |
JsonSerializable.serialize(JsonGenerator jgen,
SerializerProvider provider)
Deprecated.
|
abstract void |
JsonSerializer.serialize(T value,
JsonGenerator jgen,
SerializerProvider provider)
Method that can be called to ask implementation to serialize
values of type this serializer handles.
|
abstract void |
SerializerProvider.serializeValue(SerializationConfig cfg,
JsonGenerator jgen,
Object value,
JavaType rootType,
SerializerFactory jsf)
The method to be called by
ObjectMapper to
execute recursive serialization, using serializers that
this provider has access to; and using specified root type
for locating first-level serializer. |
abstract void |
SerializerProvider.serializeValue(SerializationConfig cfg,
JsonGenerator jgen,
Object value,
SerializerFactory jsf)
The method to be called by
ObjectMapper to
execute recursive serialization, using serializers that
this provider has access to. |
void |
JsonSerializableWithType.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
JsonSerializer.serializeWithType(T value,
JsonGenerator jgen,
SerializerProvider provider,
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 |
ObjectReader.writeTree(JsonGenerator jgen,
JsonNode rootNode)
NOTE: NOT implemented for
ObjectReader . |
void |
ObjectMapper.writeTree(JsonGenerator jgen,
JsonNode rootNode)
Method to serialize given JSON Tree, using generator
provided.
|
void |
ObjectMapper.writeTree(JsonGenerator jgen,
JsonNode rootNode,
SerializationConfig cfg)
Method to serialize given Json Tree, using generator
provided.
|
abstract void |
TypeSerializer.writeTypePrefixForArray(Object value,
JsonGenerator jgen)
Method called to write initial part of type information for given
value, when it will be output as JSON Array value (not as JSON
Object or scalar).
|
void |
TypeSerializer.writeTypePrefixForArray(Object value,
JsonGenerator jgen,
Class<?> type)
Alternative version of the prefix-for-array method, which is given
actual type to use (instead of using exact type of the value); typically
a super type of actual value type
|
abstract void |
TypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen)
Method called to write initial part of type information for given
value, when it will be output as JSON Object value (not as JSON
Array or scalar).
|
void |
TypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen,
Class<?> type)
Alternative version of the prefix-for-object method, which is given
actual type to use (instead of using exact type of the value); typically
a super type of actual value type
|
abstract void |
TypeSerializer.writeTypePrefixForScalar(Object value,
JsonGenerator jgen)
Method called to write initial part of type information for given
value, when it will be output as scalar JSON value (not as JSON
Object or Array).
|
void |
TypeSerializer.writeTypePrefixForScalar(Object value,
JsonGenerator jgen,
Class<?> type)
Alternative version of the prefix-for-scalar method, which is given
actual type to use (instead of using exact type of the value); typically
a super type of actual value type
|
abstract void |
TypeSerializer.writeTypeSuffixForArray(Object value,
JsonGenerator jgen)
Method called after value has been serialized, to close any scopes opened
by earlier matching call to
TypeSerializer.writeTypeSuffixForScalar(java.lang.Object, org.codehaus.jackson.JsonGenerator) . |
abstract void |
TypeSerializer.writeTypeSuffixForObject(Object value,
JsonGenerator jgen)
Method called after value has been serialized, to close any scopes opened
by earlier matching call to
TypeSerializer.writeTypePrefixForObject(java.lang.Object, org.codehaus.jackson.JsonGenerator) . |
abstract void |
TypeSerializer.writeTypeSuffixForScalar(Object value,
JsonGenerator jgen)
Method called after value has been serialized, to close any scopes opened
by earlier matching call to
TypeSerializer.writeTypePrefixForScalar(java.lang.Object, org.codehaus.jackson.JsonGenerator) . |
void |
ObjectWriter.writeValue(JsonGenerator jgen,
Object value)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator . |
void |
ObjectReader.writeValue(JsonGenerator jgen,
Object value) |
void |
ObjectMapper.writeValue(JsonGenerator jgen,
Object value)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator . |
void |
ObjectMapper.writeValue(JsonGenerator jgen,
Object value,
SerializationConfig config)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator ,
configured as per passed configuration object. |
Modifier and Type | Method and Description |
---|---|
void |
JodaSerializers.DateMidnightSerializer.serialize(DateMidnight dt,
JsonGenerator jgen,
SerializerProvider provider) |
void |
JodaSerializers.DateTimeSerializer.serialize(DateTime value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
JodaSerializers.LocalDateSerializer.serialize(LocalDate dt,
JsonGenerator jgen,
SerializerProvider provider) |
void |
JodaSerializers.LocalDateTimeSerializer.serialize(LocalDateTime dt,
JsonGenerator jgen,
SerializerProvider provider) |
void |
DOMSerializer.serialize(Node value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
CoreXMLSerializers.XMLGregorianCalendarSerializer.serialize(XMLGregorianCalendar value,
JsonGenerator jgen,
SerializerProvider provider) |
Modifier and Type | Method and Description |
---|---|
protected void |
AsExternalTypeSerializer._writePrefix(Object value,
JsonGenerator jgen) |
protected void |
AsExternalTypeSerializer._writePrefix(Object value,
JsonGenerator jgen,
Class<?> type) |
protected void |
AsExternalTypeSerializer._writeSuffix(Object value,
JsonGenerator jgen) |
void |
AsWrapperTypeSerializer.writeTypePrefixForArray(Object value,
JsonGenerator jgen) |
void |
AsExternalTypeSerializer.writeTypePrefixForArray(Object value,
JsonGenerator jgen) |
void |
AsArrayTypeSerializer.writeTypePrefixForArray(Object value,
JsonGenerator jgen) |
void |
AsWrapperTypeSerializer.writeTypePrefixForArray(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsExternalTypeSerializer.writeTypePrefixForArray(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsArrayTypeSerializer.writeTypePrefixForArray(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsWrapperTypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen) |
void |
AsPropertyTypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen) |
void |
AsExternalTypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen) |
void |
AsArrayTypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen) |
void |
AsWrapperTypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsPropertyTypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsExternalTypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsArrayTypeSerializer.writeTypePrefixForObject(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsWrapperTypeSerializer.writeTypePrefixForScalar(Object value,
JsonGenerator jgen) |
void |
AsExternalTypeSerializer.writeTypePrefixForScalar(Object value,
JsonGenerator jgen) |
void |
AsArrayTypeSerializer.writeTypePrefixForScalar(Object value,
JsonGenerator jgen) |
void |
AsWrapperTypeSerializer.writeTypePrefixForScalar(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsExternalTypeSerializer.writeTypePrefixForScalar(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsArrayTypeSerializer.writeTypePrefixForScalar(Object value,
JsonGenerator jgen,
Class<?> type) |
void |
AsWrapperTypeSerializer.writeTypeSuffixForArray(Object value,
JsonGenerator jgen) |
void |
AsExternalTypeSerializer.writeTypeSuffixForArray(Object value,
JsonGenerator jgen) |
void |
AsArrayTypeSerializer.writeTypeSuffixForArray(Object value,
JsonGenerator jgen) |
void |
AsWrapperTypeSerializer.writeTypeSuffixForObject(Object value,
JsonGenerator jgen) |
void |
AsPropertyTypeSerializer.writeTypeSuffixForObject(Object value,
JsonGenerator jgen) |
void |
AsExternalTypeSerializer.writeTypeSuffixForObject(Object value,
JsonGenerator jgen) |
void |
AsArrayTypeSerializer.writeTypeSuffixForObject(Object value,
JsonGenerator jgen) |
void |
AsWrapperTypeSerializer.writeTypeSuffixForScalar(Object value,
JsonGenerator jgen) |
void |
AsExternalTypeSerializer.writeTypeSuffixForScalar(Object value,
JsonGenerator jgen) |
void |
AsArrayTypeSerializer.writeTypeSuffixForScalar(Object value,
JsonGenerator jgen) |
Modifier and Type | Method and Description |
---|---|
protected void |
StdSerializerProvider._serializeValue(JsonGenerator jgen,
Object value)
Method called on the actual non-blueprint provider instance object,
to kick off the serialization.
|
protected void |
StdSerializerProvider._serializeValue(JsonGenerator jgen,
Object value,
JavaType rootType)
Method called on the actual non-blueprint provider instance object,
to kick off the serialization, when root type is explicitly
specified and not determined from value.
|
void |
StdSerializerProvider.defaultSerializeDateKey(Date date,
JsonGenerator jgen) |
void |
StdSerializerProvider.defaultSerializeDateKey(long timestamp,
JsonGenerator jgen) |
void |
StdSerializerProvider.defaultSerializeDateValue(Date date,
JsonGenerator jgen) |
void |
StdSerializerProvider.defaultSerializeDateValue(long timestamp,
JsonGenerator jgen) |
void |
AnyGetterWriter.getAndSerialize(Object bean,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdSerializers.BooleanSerializer.serialize(Boolean value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdSerializers.SqlDateSerializer.serialize(Date value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdSerializers.DoubleSerializer.serialize(Double value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdSerializers.FloatSerializer.serialize(Float value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdSerializers.IntegerSerializer.serialize(Integer value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdSerializers.LongSerializer.serialize(Long value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdSerializers.IntLikeSerializer.serialize(Number value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdSerializers.NumberSerializer.serialize(Number value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
BeanSerializer.serialize(Object bean,
JsonGenerator jgen,
SerializerProvider provider)
Main serialization method that will delegate actual output to
configured
BeanPropertyWriter instances. |
void |
StdSerializers.StringSerializer.serialize(String value,
JsonGenerator jgen,
SerializerProvider provider)
Deprecated.
|
void |
StdSerializers.SqlTimeSerializer.serialize(Time value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
BeanPropertyWriter.serializeAsField(Object bean,
JsonGenerator jgen,
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 bean,
JsonGenerator jgen,
SerializerProvider prov,
BeanPropertyWriter writer)
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 |
StdSerializerProvider.serializeValue(SerializationConfig config,
JsonGenerator jgen,
Object value,
JavaType rootType,
SerializerFactory jsf) |
void |
StdSerializerProvider.serializeValue(SerializationConfig config,
JsonGenerator jgen,
Object value,
SerializerFactory jsf) |
Modifier and Type | Method and Description |
---|---|
void |
UnwrappingBeanSerializer.serialize(Object bean,
JsonGenerator jgen,
SerializerProvider provider)
Main serialization method that will delegate actual output to
configured
BeanPropertyWriter instances. |
void |
UnknownSerializer.serialize(Object value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
FailingSerializer.serialize(Object value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
UnwrappingBeanPropertyWriter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider prov) |
void |
SimpleBeanPropertyFilter.FilterExceptFilter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer) |
void |
SimpleBeanPropertyFilter.SerializeExceptFilter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer) |
void |
UnknownSerializer.serializeWithType(Object value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Method and Description |
---|---|
void |
StdJdkSerializers.AtomicBooleanSerializer.serialize(AtomicBoolean value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdJdkSerializers.AtomicIntegerSerializer.serialize(AtomicInteger value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdJdkSerializers.AtomicLongSerializer.serialize(AtomicLong value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdJdkSerializers.AtomicReferenceSerializer.serialize(AtomicReference<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.ByteArraySerializer.serialize(byte[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdKeySerializers.CalendarKeySerializer.serialize(Calendar value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
CalendarSerializer.serialize(Calendar value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.CharArraySerializer.serialize(char[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdJdkSerializers.ClassSerializer.serialize(Class<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StringCollectionSerializer.serialize(Collection<String> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdKeySerializers.DateKeySerializer.serialize(Date value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
DateSerializer.serialize(Date value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
EnumSerializer.serialize(Enum<?> en,
JsonGenerator jgen,
SerializerProvider provider) |
void |
EnumMapSerializer.serialize(EnumMap<? extends Enum<?>,?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdJdkSerializers.FileSerializer.serialize(File value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
InetAddressSerializer.serialize(InetAddress value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
SerializableSerializer.serialize(JsonSerializable value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
SerializableWithTypeSerializer.serialize(JsonSerializableWithType value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
IndexedStringListSerializer.serialize(List<String> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
MapSerializer.serialize(Map<?,?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
ToStringSerializer.serialize(Object value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdKeySerializer.serialize(Object value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
NullSerializer.serialize(Object value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
JsonValueSerializer.serialize(Object bean,
JsonGenerator jgen,
SerializerProvider prov) |
abstract void |
BeanSerializerBase.serialize(Object bean,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StringSerializer.serialize(String value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdKeySerializers.StringKeySerializer.serialize(String value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
TimeZoneSerializer.serialize(TimeZone value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.ArraySerializerBase.serialize(T value,
JsonGenerator jgen,
SerializerProvider provider) |
abstract void |
SerializerBase.serialize(T value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
RawSerializer.serialize(T value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
AsArraySerializerBase.serialize(T value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
TokenBufferSerializer.serialize(TokenBuffer value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.BooleanArraySerializer.serializeContents(boolean[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
CollectionSerializer.serializeContents(Collection<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.DoubleArraySerializer.serializeContents(double[] value,
JsonGenerator jgen,
SerializerProvider provider) |
protected void |
EnumMapSerializer.serializeContents(EnumMap<? extends Enum<?>,?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
EnumSetSerializer.serializeContents(EnumSet<? extends Enum<?>> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.FloatArraySerializer.serializeContents(float[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.IntArraySerializer.serializeContents(int[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
IterableSerializer.serializeContents(Iterable<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdContainerSerializers.IteratorSerializer.serializeContents(Iterator<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdContainerSerializers.IndexedListSerializer.serializeContents(List<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.LongArraySerializer.serializeContents(long[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
ObjectArraySerializer.serializeContents(Object[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.ShortArraySerializer.serializeContents(short[] value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.StringArraySerializer.serializeContents(String[] value,
JsonGenerator jgen,
SerializerProvider provider) |
protected abstract void |
StdArraySerializers.ArraySerializerBase.serializeContents(T value,
JsonGenerator jgen,
SerializerProvider provider) |
protected abstract void |
AsArraySerializerBase.serializeContents(T value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
CollectionSerializer.serializeContentsUsing(Collection<?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser) |
protected void |
EnumMapSerializer.serializeContentsUsing(EnumMap<? extends Enum<?>,?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> valueSer) |
void |
StdContainerSerializers.IndexedListSerializer.serializeContentsUsing(List<?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser) |
void |
ObjectArraySerializer.serializeContentsUsing(Object[] value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser) |
void |
MapSerializer.serializeFields(Map<?,?> value,
JsonGenerator jgen,
SerializerProvider provider)
Method called to serialize fields, when the value type is not statically known.
|
protected void |
BeanSerializerBase.serializeFields(Object bean,
JsonGenerator jgen,
SerializerProvider provider) |
protected void |
BeanSerializerBase.serializeFieldsFiltered(Object bean,
JsonGenerator jgen,
SerializerProvider provider)
Alternative serialization method that gets called when there is a
BeanPropertyFilter that needs to be called to determine
which properties are to be serialized (and possibly how) |
protected void |
MapSerializer.serializeFieldsUsing(Map<?,?> value,
JsonGenerator jgen,
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 |
StdContainerSerializers.IndexedListSerializer.serializeTypedContents(List<?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
ObjectArraySerializer.serializeTypedContents(Object[] value,
JsonGenerator jgen,
SerializerProvider provider) |
protected void |
MapSerializer.serializeTypedFields(Map<?,?> value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
StdArraySerializers.ByteArraySerializer.serializeWithType(byte[] value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
StdArraySerializers.CharArraySerializer.serializeWithType(char[] value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
StringCollectionSerializer.serializeWithType(Collection<String> value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
EnumMapSerializer.serializeWithType(EnumMap<? extends Enum<?>,?> value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
InetAddressSerializer.serializeWithType(InetAddress value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
SerializableSerializer.serializeWithType(JsonSerializable value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
SerializableWithTypeSerializer.serializeWithType(JsonSerializableWithType value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
IndexedStringListSerializer.serializeWithType(List<String> value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
MapSerializer.serializeWithType(Map<?,?> value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
ToStringSerializer.serializeWithType(Object value,
JsonGenerator jgen,
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 |
JsonValueSerializer.serializeWithType(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
BeanSerializerBase.serializeWithType(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
TimeZoneSerializer.serializeWithType(TimeZone value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
StdArraySerializers.ArraySerializerBase.serializeWithType(T value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
ScalarSerializerBase.serializeWithType(T value,
JsonGenerator jgen,
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 |
RawSerializer.serializeWithType(T value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
NonTypedScalarSerializerBase.serializeWithType(T value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
AsArraySerializerBase.serializeWithType(T value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
TokenBufferSerializer.serializeWithType(TokenBuffer value,
JsonGenerator jgen,
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 jgen,
SerializerProvider provider) |
void |
TypeBase.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Method and Description |
---|---|
void |
JSONWrappedObject.serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
JSONPObject.serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
JSONWrappedObject.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
JSONPObject.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Method and Description |
---|---|
void |
TextNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
POJONode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
ObjectNode.serialize(JsonGenerator jg,
SerializerProvider provider)
Method that can be called to serialize this node and
all of its descendants using specified JSON generator.
|
void |
NullNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
MissingNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
LongNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
IntNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
DoubleNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
DecimalNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
BooleanNode.serialize(JsonGenerator jg,
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 jg,
SerializerProvider provider) |
void |
ValueNode.serializeWithType(JsonGenerator jg,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
ObjectNode.serializeWithType(JsonGenerator jg,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
MissingNode.serializeWithType(JsonGenerator jg,
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 jg,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Class and Description |
---|---|
class |
SmileGenerator
JsonGenerator implementation for the experimental "Binary JSON Infoset". |
Modifier and Type | Method and Description |
---|---|
protected JsonGenerator |
SmileFactory._createJsonGenerator(Writer out,
IOContext ctxt)
Overridable factory method that actually instantiates desired
generator.
|
JsonGenerator |
SmileGenerator.setPrettyPrinter(PrettyPrinter pp)
No way (or need) to indent anything, so let's block any attempts.
|
JsonGenerator |
SmileGenerator.useDefaultPrettyPrinter()
No way (or need) to indent anything, so let's block any attempts.
|
Modifier and Type | Class and Description |
---|---|
class |
JsonGeneratorDelegate |
class |
TokenBuffer
Utility class used for efficient storage of
JsonToken
sequences, needed for temporary buffering. |
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 |
TokenBuffer.disable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorDelegate.disable(JsonGenerator.Feature f) |
JsonGenerator |
TokenBuffer.enable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorDelegate.enable(JsonGenerator.Feature f) |
JsonGenerator |
TokenBuffer.setCodec(ObjectCodec oc) |
JsonGenerator |
JsonGeneratorDelegate.setCodec(ObjectCodec oc) |
JsonGenerator |
TokenBuffer.useDefaultPrettyPrinter() |
JsonGenerator |
JsonGeneratorDelegate.useDefaultPrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
MinimalPrettyPrinter.beforeArrayValues(JsonGenerator jg) |
void |
DefaultPrettyPrinter.beforeArrayValues(JsonGenerator jg) |
void |
MinimalPrettyPrinter.beforeObjectEntries(JsonGenerator jg) |
void |
DefaultPrettyPrinter.beforeObjectEntries(JsonGenerator jg) |
void |
TokenBuffer.serialize(JsonGenerator jgen)
Helper method that will write all contents of this buffer
using given
JsonGenerator . |
void |
MinimalPrettyPrinter.writeArrayValueSeparator(JsonGenerator jg)
Method called after an array value has been completely
output, and before another value is to be output.
|
void |
DefaultPrettyPrinter.writeArrayValueSeparator(JsonGenerator jg)
Method called after an array value has been completely
output, and before another value is to be output.
|
void |
MinimalPrettyPrinter.writeEndArray(JsonGenerator jg,
int nrOfValues) |
void |
DefaultPrettyPrinter.writeEndArray(JsonGenerator jg,
int nrOfValues) |
void |
MinimalPrettyPrinter.writeEndObject(JsonGenerator jg,
int nrOfEntries) |
void |
DefaultPrettyPrinter.writeEndObject(JsonGenerator jg,
int nrOfEntries) |
void |
DefaultPrettyPrinter.NopIndenter.writeIndentation(JsonGenerator jg,
int level) |
void |
DefaultPrettyPrinter.FixedSpaceIndenter.writeIndentation(JsonGenerator jg,
int level) |
void |
DefaultPrettyPrinter.Lf2SpacesIndenter.writeIndentation(JsonGenerator jg,
int level) |
void |
MinimalPrettyPrinter.writeObjectEntrySeparator(JsonGenerator jg)
Method called after an object entry (field:value) has been completely
output, and before another value is to be output.
|
void |
DefaultPrettyPrinter.writeObjectEntrySeparator(JsonGenerator jg)
Method called after an object entry (field:value) has been completely
output, and before another value is to be output.
|
void |
MinimalPrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator jg)
Method called after an object field has been output, but
before the value is output.
|
void |
DefaultPrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator jg)
Method called after an object field has been output, but
before the value is output.
|
void |
MinimalPrettyPrinter.writeRootValueSeparator(JsonGenerator jg) |
void |
DefaultPrettyPrinter.writeRootValueSeparator(JsonGenerator jg) |
void |
MinimalPrettyPrinter.writeStartArray(JsonGenerator jg) |
void |
DefaultPrettyPrinter.writeStartArray(JsonGenerator jg) |
void |
MinimalPrettyPrinter.writeStartObject(JsonGenerator jg) |
void |
DefaultPrettyPrinter.writeStartObject(JsonGenerator jg) |
Constructor and Description |
---|
JsonGeneratorDelegate(JsonGenerator d) |
Modifier and Type | Method and Description |
---|---|
void |
DataHandlerJsonSerializer.serialize(DataHandler value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
DomElementJsonSerializer.serialize(Element value,
JsonGenerator jgen,
SerializerProvider provider) |
void |
XmlAdapterJsonSerializer.serialize(Object value,
JsonGenerator jgen,
SerializerProvider provider) |