Uses of Class
com.fasterxml.jackson.databind.ObjectWriter
Packages that use ObjectWriter
Package
Description
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.-
Uses of ObjectWriter in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return ObjectWriterModifier and TypeMethodDescriptionprotected 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()" methodsprotected ObjectWriter
ObjectWriter._new
(ObjectWriter base, SerializationConfig config) Overridable factory method called by various "withXxx()" methodsprotected ObjectWriter
ObjectMapper._newWriter
(SerializationConfig config) Factory method sub-classes must override, to produceObjectWriter
instances of proper sub-typeprotected ObjectWriter
ObjectMapper._newWriter
(SerializationConfig config, com.fasterxml.jackson.core.FormatSchema schema) Factory method sub-classes must override, to produceObjectWriter
instances of proper sub-typeprotected ObjectWriter
ObjectMapper._newWriter
(SerializationConfig config, JavaType rootType, com.fasterxml.jackson.core.PrettyPrinter pp) Factory method sub-classes must override, to produceObjectWriter
instances of proper sub-typeObjectWriter.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.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.with
(com.fasterxml.jackson.core.Base64Variant b64variant) Method that will construct a new instance that uses specified defaultBase64Variant
for base64 encodingObjectWriter.with
(com.fasterxml.jackson.core.FormatFeature feature) ObjectWriter.with
(com.fasterxml.jackson.core.FormatSchema schema) Method that will construct a new instance that uses specific format schema for serialization.ObjectWriter.with
(com.fasterxml.jackson.core.io.CharacterEscapes escapes) ObjectWriter.with
(com.fasterxml.jackson.core.JsonFactory f) ObjectWriter.with
(com.fasterxml.jackson.core.JsonGenerator.Feature feature) 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.with
(com.fasterxml.jackson.core.StreamWriteFeature feature) ObjectWriter.with
(ContextAttributes attrs) ObjectWriter.with
(DatatypeFeature feature) Method for constructing a new instance that is configured with specified feature enabled.ObjectWriter.with
(FilterProvider filterProvider) Method that will construct a new instance that uses specified provider for resolving filter instances by id.ObjectWriter.with
(SerializationFeature feature) Method for constructing a new instance that is configured with specified feature enabled.ObjectWriter.with
(SerializationFeature first, SerializationFeature... other) Method for constructing a new instance that is configured with specified features enabled.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.withAttribute
(Object key, Object value) ObjectWriter.withAttributes
(Map<?, ?> attrs) Mutant factory method that allows construction of a new writer instance that uses specified set of default attribute values.ObjectWriter.withDefaultPrettyPrinter()
Method that will construct a new instance that will use the default pretty printer for serialization.ObjectWriter.withFeatures
(com.fasterxml.jackson.core.FormatFeature... features) ObjectWriter.withFeatures
(com.fasterxml.jackson.core.JsonGenerator.Feature... features) ObjectWriter.withFeatures
(DatatypeFeature... features) Method for constructing a new instance that is configured with specified features enabled.ObjectWriter.withFeatures
(SerializationFeature... features) Method for constructing a new instance that is configured with specified features enabled.ObjectWriter.without
(com.fasterxml.jackson.core.FormatFeature feature) ObjectWriter.without
(com.fasterxml.jackson.core.JsonGenerator.Feature feature) ObjectWriter.without
(com.fasterxml.jackson.core.StreamWriteFeature feature) ObjectWriter.without
(DatatypeFeature feature) Method for constructing a new instance that is configured with specified feature disabled.ObjectWriter.without
(SerializationFeature feature) Method for constructing a new instance that is configured with specified feature disabled.ObjectWriter.without
(SerializationFeature first, SerializationFeature... other) Method for constructing a new instance that is configured with specified features disabled.ObjectWriter.withoutAttribute
(Object key) ObjectWriter.withoutFeatures
(com.fasterxml.jackson.core.FormatFeature... features) ObjectWriter.withoutFeatures
(com.fasterxml.jackson.core.JsonGenerator.Feature... features) ObjectWriter.withoutFeatures
(DatatypeFeature... features) Method for constructing a new instance that is configured with specified features disabled.ObjectWriter.withoutFeatures
(SerializationFeature... features) Method for constructing a new instance that is configured with specified features disabled.ObjectWriter.withoutRootName()
Convenience method that is same as calling:withRootName("")
which will forcibly prevent use of root name wrapping when writing values with thisObjectWriter
.ObjectWriter.withRootName
(PropertyName rootName) ObjectWriter.withRootName
(String rootName) Method for constructing a new instance with configuration that specifies what root name to use for "root element wrapping".ObjectWriter.withRootValueSeparator
(com.fasterxml.jackson.core.SerializableString sep) ObjectWriter.withRootValueSeparator
(String sep) ObjectWriter.withSchema
(com.fasterxml.jackson.core.FormatSchema schema) Deprecated.ObjectWriter.withType
(com.fasterxml.jackson.core.type.TypeReference<?> rootType) Deprecated.since 2.5 UseforType(TypeReference)
insteadDeprecated.since 2.5 UseforType(JavaType)
insteadDeprecated.since 2.5 UseforType(Class)
insteadMethod 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
(com.fasterxml.jackson.core.Base64Variant defaultBase64) Factory method for constructingObjectWriter
that will use specified Base64 encoding variant for Base64-encoded binary data.ObjectMapper.writer
(com.fasterxml.jackson.core.FormatSchema schema) Factory method for constructingObjectWriter
that will pass specific schema object toJsonGenerator
used for writing content.ObjectMapper.writer
(com.fasterxml.jackson.core.io.CharacterEscapes escapes) Factory method for constructingObjectReader
that will use specified character escaping details for output.ObjectMapper.writer
(com.fasterxml.jackson.core.PrettyPrinter pp) Factory method for constructingObjectWriter
that will serialize objects using specified pretty printer for indentation (or if null, no pretty printer)ObjectMapper.writer
(ContextAttributes attrs) Factory method for constructingObjectWriter
that will use specified default attributes.ObjectMapper.writer
(FilterProvider filterProvider) Factory method for constructingObjectWriter
that will serialize objects using specified filter provider.ObjectMapper.writer
(SerializationFeature feature) Factory method for constructingObjectWriter
with specified feature enabled (compared to settings that this mapper instance has).ObjectMapper.writer
(SerializationFeature first, SerializationFeature... other) Factory method for constructingObjectWriter
with specified features enabled (compared to settings that this mapper instance has).ObjectMapper.writer
(DateFormat df) Factory method for constructingObjectWriter
that will serialize objects using specifiedDateFormat
; or, if null passed, using timestamp (64-bit number.ObjectMapper.writerFor
(com.fasterxml.jackson.core.type.TypeReference<?> rootType) Factory method for constructingObjectWriter
that will serialize objects using specified root type, instead of actual runtime type of value.Factory method for constructingObjectWriter
that will serialize objects using specified root type, instead of actual runtime type of value.Factory method for constructingObjectWriter
that will serialize objects using specified root type, instead of actual runtime type of value.ObjectMapper.writerWithDefaultPrettyPrinter()
Factory method for constructingObjectWriter
that will serialize objects using the default pretty printer for indentationObjectMapper.writerWithType
(com.fasterxml.jackson.core.type.TypeReference<?> rootType) Deprecated.Since 2.5, useObjectMapper.writerFor(TypeReference)
insteadObjectMapper.writerWithType
(JavaType rootType) Deprecated.Since 2.5, useObjectMapper.writerFor(JavaType)
insteadObjectMapper.writerWithType
(Class<?> rootType) Deprecated.Since 2.5, useObjectMapper.writerFor(Class)
insteadObjectMapper.writerWithView
(Class<?> serializationView) Factory method for constructingObjectWriter
that will serialize objects using specified JSON View (filter).Methods in com.fasterxml.jackson.databind with parameters of type ObjectWriterModifier and TypeMethodDescriptionprotected ObjectWriter
ObjectWriter._new
(ObjectWriter base, com.fasterxml.jackson.core.JsonFactory f) Overridable factory method called by various "withXxx()" methodsprotected ObjectWriter
ObjectWriter._new
(ObjectWriter base, SerializationConfig config) Overridable factory method called by various "withXxx()" methodsObjectWriter.Prefetch.forRootType
(ObjectWriter parent, JavaType newType) Constructors in com.fasterxml.jackson.databind with parameters of type ObjectWriterModifierConstructorDescriptionprotected
ObjectWriter
(ObjectWriter base, com.fasterxml.jackson.core.JsonFactory f) protected
ObjectWriter
(ObjectWriter base, SerializationConfig config) Copy constructor used for building variations.protected
ObjectWriter
(ObjectWriter base, SerializationConfig config, ObjectWriter.GeneratorSettings genSettings, ObjectWriter.Prefetch prefetch) Copy constructor used for building variations.
with(FormatSchema)
instead