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 |
---|---|
ObjectWriter |
ObjectWriter.with(Base64Variant b64variant)
Method that will construct a new instance that uses specified default
Base64Variant for base64 encoding |
ObjectWriter |
ObjectWriter.with(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(JsonFactory f) |
ObjectWriter |
ObjectWriter.with(Locale l) |
ObjectWriter |
ObjectWriter.with(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(SerializationFeature... features)
Method for constructing a new instance that is configured
with specified features enabled.
|
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(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.withSchema(FormatSchema schema)
Method that will construct a new instance that uses specific format schema
for serialization.
|
ObjectWriter |
ObjectWriter.withType(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.withType(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.withType(TypeReference<?> rootType) |
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(Base64Variant defaultBase64)
Factory method for constructing
ObjectWriter that will
use specified Base64 encoding variant for Base64-encoded binary data. |
ObjectWriter |
ObjectMapper.writer(CharacterEscapes escapes)
Factory method for constructing
ObjectReader that will
use specified character escaping details for output. |
ObjectWriter |
ObjectMapper.writer(ContextAttributes attrs)
Factory method for constructing
ObjectWriter that will
use specified default attributes. |
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.writer(FilterProvider filterProvider)
Factory method for constructing
ObjectWriter that will
serialize objects using specified filter provider. |
ObjectWriter |
ObjectMapper.writer(FormatSchema schema)
Factory method for constructing
ObjectWriter that will
pass specific schema object to JsonGenerator used for
writing content. |
ObjectWriter |
ObjectMapper.writer(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(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.writerWithDefaultPrettyPrinter()
Factory method for constructing
ObjectWriter that will
serialize objects using the default pretty printer for indentation |
ObjectWriter |
ObjectMapper.writerWithType(Class<?> rootType)
Factory method for constructing
ObjectWriter that will
serialize objects using specified root type, instead of actual
runtime type of value. |
ObjectWriter |
ObjectMapper.writerWithType(JavaType rootType)
Factory method for constructing
ObjectWriter that will
serialize objects using specified root type, instead of actual
runtime type of value. |
ObjectWriter |
ObjectMapper.writerWithType(TypeReference<?> rootType)
Factory method for constructing
ObjectWriter that will
serialize objects using specified root type, instead of actual
runtime type of value. |
ObjectWriter |
ObjectMapper.writerWithView(Class<?> serializationView)
Factory method for constructing
ObjectWriter that will
serialize objects using specified JSON View (filter). |
Constructor and Description |
---|
ObjectWriter(ObjectWriter base,
JsonFactory f) |
ObjectWriter(ObjectWriter base,
SerializationConfig config)
Copy constructor used for building variations.
|
ObjectWriter(ObjectWriter base,
SerializationConfig config,
JavaType rootType,
JsonSerializer<Object> rootSer,
PrettyPrinter pp,
FormatSchema s,
CharacterEscapes escapes)
Copy constructor used for building variations.
|
Copyright © 2014 FasterXML. All Rights Reserved.