Uses of Class
org.codehaus.jackson.map.ObjectWriter
Packages that use ObjectWriter
Package
Description
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
-
Uses of ObjectWriter in org.codehaus.jackson.map
Methods in org.codehaus.jackson.map that return ObjectWriterModifier and TypeMethodDescriptionObjectMapper.defaultPrettyPrintingWriter()
Deprecated.ObjectMapper.filteredWriter
(FilterProvider filterProvider) Deprecated.Since 1.9, useObjectMapper.writer(FilterProvider)
instead.ObjectMapper.prettyPrintingWriter
(PrettyPrinter pp) Deprecated.Since 1.9, useObjectMapper.writer(FilterProvider)
instead.ObjectMapper.schemaBasedWriter
(FormatSchema schema) Deprecated.Since 1.9, useObjectMapper.writer(FilterProvider)
instead.ObjectMapper.typedWriter
(Class<?> rootType) Deprecated.Since 1.9, useObjectMapper.writerWithType(Class)
instead.ObjectMapper.typedWriter
(JavaType rootType) Deprecated.Since 1.9, useObjectMapper.writerWithType(JavaType)
instead.ObjectMapper.typedWriter
(TypeReference<?> rootType) Deprecated.Since 1.9, useObjectMapper.writerWithType(TypeReference)
instead.ObjectMapper.viewWriter
(Class<?> serializationView) Deprecated.Since 1.9, useObjectMapper.writerWithView(Class)
instead.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.withDefaultPrettyPrinter()
Method that will construct a new instance that will use the default pretty printer for serialization.ObjectWriter.withFilters
(FilterProvider filterProvider) Method that will construct a new instance that uses specified provider for resolving filter instances by id.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.withSchema
(FormatSchema schema) 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.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.withType
(TypeReference<?> rootType) Method that will construct a new instance that uses specified serialization view for serialization (with null basically disables view processing)ObjectMapper.writer()
Convenience method for constructingObjectWriter
with default settings.ObjectMapper.writer
(DateFormat df) Factory method for constructingObjectWriter
that will serialize objects using specifiedDateFormat
; or, if null passed, using timestamp (64-bit number.ObjectMapper.writer
(FormatSchema schema) Factory method for constructingObjectWriter
that will pass specific schema object toJsonGenerator
used for writing content.ObjectMapper.writer
(FilterProvider filterProvider) Factory method for constructingObjectWriter
that will serialize objects using specified filter provider.ObjectMapper.writer
(PrettyPrinter pp) Factory method for constructingObjectWriter
that will serialize objects using specified pretty printer for indentation (or if null, no pretty printer)ObjectMapper.writerWithDefaultPrettyPrinter()
Factory method for constructingObjectWriter
that will serialize objects using the default pretty printer for indentationObjectMapper.writerWithType
(Class<?> rootType) Factory method for constructingObjectWriter
that will serialize objects using specified root type, instead of actual runtime type of value.ObjectMapper.writerWithType
(JavaType rootType) Factory method for constructingObjectWriter
that will serialize objects using specified root type, instead of actual runtime type of value.ObjectMapper.writerWithType
(TypeReference<?> rootType) Factory method for constructingObjectWriter
that will serialize objects using specified root type, instead of actual runtime type of value.ObjectMapper.writerWithView
(Class<?> serializationView) Factory method for constructingObjectWriter
that will serialize objects using specified JSON View (filter).Constructors in org.codehaus.jackson.map with parameters of type ObjectWriterModifierConstructorDescriptionprotected
ObjectWriter
(ObjectWriter base, SerializationConfig config) Copy constructor used for building variations.protected
ObjectWriter
(ObjectWriter base, SerializationConfig config, JavaType rootType, PrettyPrinter pp, FormatSchema s) Copy constructor used for building variations.
ObjectMapper.writerWithDefaultPrettyPrinter()
instead.