Package | Description |
---|---|
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. |
Modifier and Type | Method | Description |
---|---|---|
protected ObjectWriter |
ObjectWriter._new(ObjectWriter.GeneratorSettings genSettings,
ObjectWriter.Prefetch prefetch) |
Overridable factory method called by various "withXxx()" methods.
|
protected ObjectWriter |
ObjectWriter._new(ObjectWriter base,
com.fasterxml.jackson.core.JsonFactory f) |
Overridable factory method called by various "withXxx()" methods
|
protected ObjectWriter |
ObjectWriter._new(ObjectWriter base,
SerializationConfig config) |
Overridable factory method called by various "withXxx()" methods
|
protected ObjectWriter |
ObjectMapper._newWriter(SerializationConfig config) |
Factory method sub-classes must override, to produce
ObjectWriter
instances of proper sub-type |
protected ObjectWriter |
ObjectMapper._newWriter(SerializationConfig config,
com.fasterxml.jackson.core.FormatSchema schema) |
Factory method sub-classes must override, to produce
ObjectWriter
instances of proper sub-type |
protected ObjectWriter |
ObjectMapper._newWriter(SerializationConfig config,
JavaType rootType,
com.fasterxml.jackson.core.PrettyPrinter pp) |
Factory method sub-classes must override, to produce
ObjectWriter
instances of proper sub-type |
ObjectWriter |
ObjectWriter.forType(com.fasterxml.jackson.core.type.TypeReference<?> rootType) |
Method that will construct a new instance that uses specific type
as the root type for serialization, instead of runtime dynamic
type of the root object itself.
|
ObjectWriter |
ObjectWriter.forType(JavaType rootType) |
Method that will construct a new instance that uses specific type
as the root type for serialization, instead of runtime dynamic
type of the root object itself.
|
ObjectWriter |
ObjectWriter.forType(Class<?> rootType) |
Method that will construct a new instance that uses specific type
as the root type for serialization, instead of runtime dynamic
type of the root object itself.
|
ObjectWriter |
ObjectWriter.with(com.fasterxml.jackson.core.Base64Variant b64variant) |
Method that will construct a new instance that uses specified default
Base64Variant for base64 encoding |
ObjectWriter |
ObjectWriter.with(com.fasterxml.jackson.core.FormatFeature feature) |
|
ObjectWriter |
ObjectWriter.with(com.fasterxml.jackson.core.FormatSchema schema) |
Method that will construct a new instance that uses specific format schema
for serialization.
|
ObjectWriter |
ObjectWriter.with(com.fasterxml.jackson.core.io.CharacterEscapes escapes) |
|
ObjectWriter |
ObjectWriter.with(com.fasterxml.jackson.core.JsonFactory f) |
|
ObjectWriter |
ObjectWriter.with(com.fasterxml.jackson.core.JsonGenerator.Feature feature) |
|
ObjectWriter |
ObjectWriter.with(com.fasterxml.jackson.core.PrettyPrinter pp) |
Method that will construct a new instance that will use specified pretty
printer (or, if null, will not do any pretty-printing)
|
ObjectWriter |
ObjectWriter.with(ContextAttributes attrs) |
|
ObjectWriter |
ObjectWriter.with(FilterProvider filterProvider) |
Method that will construct a new instance that uses specified
provider for resolving filter instances by id.
|
ObjectWriter |
ObjectWriter.with(SerializationFeature feature) |
Method for constructing a new instance that is configured
with specified feature enabled.
|
ObjectWriter |
ObjectWriter.with(SerializationFeature first,
SerializationFeature... other) |
Method for constructing a new instance that is configured
with specified features enabled.
|
ObjectWriter |
ObjectWriter.with(DateFormat df) |
Fluent factory method that will construct a new writer instance that will
use specified date format for serializing dates; or if null passed, one
that will serialize dates as numeric timestamps.
|
ObjectWriter |
ObjectWriter.with(Locale l) |
|
ObjectWriter |
ObjectWriter.with(TimeZone tz) |
|
ObjectWriter |
ObjectWriter.withAttribute(Object key,
Object value) |
|
ObjectWriter |
ObjectWriter.withAttributes(Map<?,?> attrs) |
Mutant factory method that allows construction of a new writer instance
that uses specified set of default attribute values.
|
ObjectWriter |
ObjectWriter.withDefaultPrettyPrinter() |
Method that will construct a new instance that will use the default
pretty printer for serialization.
|
ObjectWriter |
ObjectWriter.withFeatures(com.fasterxml.jackson.core.FormatFeature... features) |
|
ObjectWriter |
ObjectWriter.withFeatures(com.fasterxml.jackson.core.JsonGenerator.Feature... features) |
|
ObjectWriter |
ObjectWriter.withFeatures(SerializationFeature... features) |
Method for constructing a new instance that is configured
with specified features enabled.
|
ObjectWriter |
ObjectWriter.without(com.fasterxml.jackson.core.FormatFeature feature) |
|
ObjectWriter |
ObjectWriter.without(com.fasterxml.jackson.core.JsonGenerator.Feature feature) |
|
ObjectWriter |
ObjectWriter.without(SerializationFeature feature) |
Method for constructing a new instance that is configured
with specified feature enabled.
|
ObjectWriter |
ObjectWriter.without(SerializationFeature first,
SerializationFeature... other) |
Method for constructing a new instance that is configured
with specified features enabled.
|
ObjectWriter |
ObjectWriter.withoutAttribute(Object key) |
|
ObjectWriter |
ObjectWriter.withoutFeatures(com.fasterxml.jackson.core.FormatFeature... features) |
|
ObjectWriter |
ObjectWriter.withoutFeatures(com.fasterxml.jackson.core.JsonGenerator.Feature... features) |
|
ObjectWriter |
ObjectWriter.withoutFeatures(SerializationFeature... features) |
Method for constructing a new instance that is configured
with specified features enabled.
|
ObjectWriter |
ObjectWriter.withoutRootName() |
Convenience method that is same as calling:
withRootName("")
which will forcibly prevent use of root name wrapping when writing
values with this ObjectWriter . |
ObjectWriter |
ObjectWriter.withRootName(PropertyName rootName) |
|
ObjectWriter |
ObjectWriter.withRootName(String rootName) |
Method for constructing a new instance with configuration that
specifies what root name to use for "root element wrapping".
|
ObjectWriter |
ObjectWriter.withRootValueSeparator(com.fasterxml.jackson.core.SerializableString sep) |
|
ObjectWriter |
ObjectWriter.withRootValueSeparator(String sep) |
|
ObjectWriter |
ObjectWriter.withSchema(com.fasterxml.jackson.core.FormatSchema schema) |
Deprecated.
Since 2.5 use
with(FormatSchema) instead |
ObjectWriter |
ObjectWriter.withType(com.fasterxml.jackson.core.type.TypeReference<?> rootType) |
Deprecated.
since 2.5 Use
forType(TypeReference) instead |
ObjectWriter |
ObjectWriter.withType(JavaType rootType) |
Deprecated.
since 2.5 Use
forType(JavaType) instead |
ObjectWriter |
ObjectWriter.withType(Class<?> rootType) |
Deprecated.
since 2.5 Use
forType(Class) instead |
ObjectWriter |
ObjectWriter.withView(Class<?> view) |
Method that will construct a new instance that uses specified
serialization view for serialization (with null basically disables
view processing)
|
ObjectWriter |
ObjectMapper.writer() |
Convenience method for constructing
ObjectWriter
with default settings. |
ObjectWriter |
ObjectMapper.writer(com.fasterxml.jackson.core.Base64Variant defaultBase64) |
Factory method for constructing
ObjectWriter that will
use specified Base64 encoding variant for Base64-encoded binary data. |
ObjectWriter |
ObjectMapper.writer(com.fasterxml.jackson.core.FormatSchema schema) |
Factory method for constructing
ObjectWriter that will
pass specific schema object to JsonGenerator used for
writing content. |
ObjectWriter |
ObjectMapper.writer(com.fasterxml.jackson.core.io.CharacterEscapes escapes) |
Factory method for constructing
ObjectReader that will
use specified character escaping details for output. |
ObjectWriter |
ObjectMapper.writer(com.fasterxml.jackson.core.PrettyPrinter pp) |
Factory method for constructing
ObjectWriter that will
serialize objects using specified pretty printer for indentation
(or if null, no pretty printer) |
ObjectWriter |
ObjectMapper.writer(ContextAttributes attrs) |
Factory method for constructing
ObjectWriter that will
use specified default attributes. |
ObjectWriter |
ObjectMapper.writer(FilterProvider filterProvider) |
Factory method for constructing
ObjectWriter that will
serialize objects using specified filter provider. |
ObjectWriter |
ObjectMapper.writer(SerializationFeature feature) |
Factory method for constructing
ObjectWriter with
specified feature enabled (compared to settings that this
mapper instance has). |
ObjectWriter |
ObjectMapper.writer(SerializationFeature first,
SerializationFeature... other) |
Factory method for constructing
ObjectWriter with
specified features enabled (compared to settings that this
mapper instance has). |
ObjectWriter |
ObjectMapper.writer(DateFormat df) |
Factory method for constructing
ObjectWriter that will
serialize objects using specified DateFormat ; or, if
null passed, using timestamp (64-bit number. |
ObjectWriter |
ObjectMapper.writerFor(com.fasterxml.jackson.core.type.TypeReference<?> rootType) |
Factory method for constructing
ObjectWriter that will
serialize objects using specified root type, instead of actual
runtime type of value. |
ObjectWriter |
ObjectMapper.writerFor(JavaType rootType) |
Factory method for constructing
ObjectWriter that will
serialize objects using specified root type, instead of actual
runtime type of value. |
ObjectWriter |
ObjectMapper.writerFor(Class<?> rootType) |
Factory method for constructing
ObjectWriter that will
serialize objects using specified root type, instead of actual
runtime type of value. |
ObjectWriter |
ObjectMapper.writerWithDefaultPrettyPrinter() |
Factory method for constructing
ObjectWriter that will
serialize objects using the default pretty printer for indentation |
ObjectWriter |
ObjectMapper.writerWithType(com.fasterxml.jackson.core.type.TypeReference<?> rootType) |
Deprecated.
Since 2.5, use
ObjectMapper.writerFor(TypeReference) instead |
ObjectWriter |
ObjectMapper.writerWithType(JavaType rootType) |
Deprecated.
Since 2.5, use
ObjectMapper.writerFor(JavaType) instead |
ObjectWriter |
ObjectMapper.writerWithType(Class<?> rootType) |
Deprecated.
Since 2.5, use
ObjectMapper.writerFor(Class) instead |
ObjectWriter |
ObjectMapper.writerWithView(Class<?> serializationView) |
Factory method for constructing
ObjectWriter that will
serialize objects using specified JSON View (filter). |
Modifier and Type | Method | Description |
---|---|---|
protected ObjectWriter |
ObjectWriter._new(ObjectWriter base,
com.fasterxml.jackson.core.JsonFactory f) |
Overridable factory method called by various "withXxx()" methods
|
protected ObjectWriter |
ObjectWriter._new(ObjectWriter base,
SerializationConfig config) |
Overridable factory method called by various "withXxx()" methods
|
ObjectWriter.Prefetch |
ObjectWriter.Prefetch.forRootType(ObjectWriter parent,
JavaType newType) |
Constructor | Description |
---|---|
ObjectWriter(ObjectWriter base,
com.fasterxml.jackson.core.JsonFactory f) |
|
ObjectWriter(ObjectWriter base,
SerializationConfig config) |
Copy constructor used for building variations.
|
ObjectWriter(ObjectWriter base,
SerializationConfig config,
ObjectWriter.GeneratorSettings genSettings,
ObjectWriter.Prefetch prefetch) |
Copy constructor used for building variations.
|
Copyright © 2008–2018. All rights reserved.