Package | Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
ObjectWriter |
ObjectMapper.defaultPrettyPrintingWriter()
Deprecated.
Since 1.9, use
ObjectMapper.writerWithDefaultPrettyPrinter() instead. |
ObjectWriter |
ObjectMapper.filteredWriter(FilterProvider filterProvider)
Deprecated.
Since 1.9, use
ObjectMapper.writer(FilterProvider) instead. |
ObjectWriter |
ObjectMapper.prettyPrintingWriter(PrettyPrinter pp)
Deprecated.
Since 1.9, use
ObjectMapper.writer(FilterProvider) instead. |
ObjectWriter |
ObjectMapper.schemaBasedWriter(FormatSchema schema)
Deprecated.
Since 1.9, use
ObjectMapper.writer(FilterProvider) instead. |
ObjectWriter |
ObjectMapper.typedWriter(Class<?> rootType)
Deprecated.
Since 1.9, use
ObjectMapper.writerWithType(Class) instead. |
ObjectWriter |
ObjectMapper.typedWriter(JavaType rootType)
Deprecated.
Since 1.9, use
ObjectMapper.writerWithType(JavaType) instead. |
ObjectWriter |
ObjectMapper.typedWriter(TypeReference<?> rootType)
Deprecated.
Since 1.9, use
ObjectMapper.writerWithType(TypeReference) instead. |
ObjectWriter |
ObjectMapper.viewWriter(Class<?> serializationView)
Deprecated.
Since 1.9, use
ObjectMapper.writerWithView(Class) instead. |
ObjectWriter |
ObjectWriter.withDateFormat(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.withDefaultPrettyPrinter()
Method that will construct a new instance that will use the default
pretty printer for serialization.
|
ObjectWriter |
ObjectWriter.withFilters(FilterProvider filterProvider)
Method that will construct a new instance that uses specified
provider for resolving filter instances by id.
|
ObjectWriter |
ObjectWriter.withPrettyPrinter(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.withSchema(FormatSchema schema) |
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(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.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,
SerializationConfig config)
Copy constructor used for building variations.
|
ObjectWriter(ObjectWriter base,
SerializationConfig config,
JavaType rootType,
PrettyPrinter pp,
FormatSchema s)
Copy constructor used for building variations.
|