Package | Description |
---|---|
com.fasterxml.jackson.databind |
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 |
Modifier and Type | Method and Description |
---|---|
<W extends ObjectWriter> |
ObjectMapper.writer()
Convenience method for constructing
ObjectWriter
with default settings. |
<W extends 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. |
<W extends ObjectWriter> |
ObjectMapper.writer(com.fasterxml.jackson.core.io.CharacterEscapes escapes)
Factory method for constructing
ObjectReader that will
use specified character escaping details for output. |
<W extends ObjectWriter> |
ObjectMapper.writer(ContextAttributes attrs)
Factory method for constructing
ObjectWriter that will
use specified default attributes. |
<W extends 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. |
<W extends ObjectWriter> |
ObjectMapper.writer(FilterProvider filterProvider)
Factory method for constructing
ObjectWriter that will
serialize objects using specified filter provider. |
<W extends 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. |
<W extends 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) |
<W extends ObjectWriter> |
ObjectMapper.writer(SerializationFeature feature)
Factory method for constructing
ObjectWriter with
specified feature enabled (compared to settings that this
mapper instance has). |
<W extends ObjectWriter> |
ObjectMapper.writer(SerializationFeature first,
SerializationFeature... other)
Factory method for constructing
ObjectWriter with
specified features enabled (compared to settings that this
mapper instance has). |
<W extends 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. |
<W extends 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. |
<W extends 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. |
<W extends ObjectWriter> |
ObjectMapper.writerWithDefaultPrettyPrinter()
Factory method for constructing
ObjectWriter that will
serialize objects using the default pretty printer for indentation |
<W extends ObjectWriter> |
ObjectMapper.writerWithType(Class<?> rootType)
Deprecated.
Since 2.5, use
ObjectMapper.writerFor(Class) instead |
<W extends ObjectWriter> |
ObjectMapper.writerWithType(JavaType rootType)
Deprecated.
Since 2.5, use
ObjectMapper.writerFor(JavaType) instead |
<W extends ObjectWriter> |
ObjectMapper.writerWithType(com.fasterxml.jackson.core.type.TypeReference<?> rootType)
Deprecated.
Since 2.5, use
ObjectMapper.writerFor(TypeReference) instead |
<W extends ObjectWriter> |
ObjectMapper.writerWithView(Class<?> serializationView)
Factory method for constructing
ObjectWriter that will
serialize objects using specified JSON View (filter). |
Modifier and Type | Method and 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(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.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(com.fasterxml.jackson.core.type.TypeReference<?> rootType) |
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.io.CharacterEscapes escapes) |
ObjectWriter |
ObjectWriter.with(ContextAttributes attrs) |
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(FilterProvider filterProvider)
Method that will construct a new instance that uses specified
provider for resolving filter instances by id.
|
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.JsonFactory f) |
ObjectWriter |
ObjectWriter.with(com.fasterxml.jackson.core.JsonGenerator.Feature feature) |
ObjectWriter |
ObjectWriter.with(Locale l) |
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(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(TimeZone tz) |
ObjectWriter |
ObjectWriter.withAttribute(Object key,
Object value) |
ObjectWriter |
ObjectWriter.withAttributes(Map<Object,Object> attrs) |
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.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.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.JsonGenerator.Feature... features) |
ObjectWriter |
ObjectWriter.withoutFeatures(SerializationFeature... features)
Method for constructing a new instance that is configured
with specified features enabled.
|
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(Class<?> rootType)
Deprecated.
since 2.5 Use
forType(Class) instead |
ObjectWriter |
ObjectWriter.withType(JavaType rootType)
Deprecated.
since 2.5 Use
forType(JavaType) instead |
ObjectWriter |
ObjectWriter.withType(com.fasterxml.jackson.core.type.TypeReference<?> rootType)
Deprecated.
since 2.5 Use
forType(TypeReference) 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)
|
Modifier and Type | Method and 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
|
Constructor and 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 © 2014-2015 FasterXML. All Rights Reserved.