Java com.fasterxml.jackson.databind ObjectWriter fields, constructors, methods, implement or subclass

Example usage for Java com.fasterxml.jackson.databind ObjectWriter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.fasterxml.jackson.databind ObjectWriter.

The text is from its open source code.

Method

ObjectWriterwith(SerializationFeature feature)
Method for constructing a new instance that is configured with specified feature enabled.
ObjectWriterwith(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.
ObjectWriterwith(FilterProvider filterProvider)
Method that will construct a new instance that uses specified provider for resolving filter instances by id.
ObjectWriterwith(PrettyPrinter pp)
Method that will construct a new instance that will use specified pretty printer (or, if null, will not do any pretty-printing)
ObjectWriterwith(Locale l)
ObjectWriterwith(TimeZone tz)
ObjectWriterwith(Base64Variant b64variant)
Method that will construct a new instance that uses specified default Base64Variant for base64 encoding
ObjectWriterwith(CharacterEscapes escapes)
ObjectWriterwith(JsonFactory f)
ObjectWriterwith(ContextAttributes attrs)
ObjectWriterwithDefaultPrettyPrinter()
Method that will construct a new instance that will use the default pretty printer for serialization.
ObjectWriterwithRootName(String rootName)
Method for constructing a new instance with configuration that specifies what root name to use for "root element wrapping".
ObjectWriterwithView(Class view)
Method that will construct a new instance that uses specified serialization view for serialization (with null basically disables view processing)

Note that the method does NOT change state of this reader, but rather construct and returns a newly configured instance.

voidwriteValue(JsonGenerator jgen, Object value)
Method that can be used to serialize any Java value as JSON output, using provided JsonGenerator .
voidwriteValue(File resultFile, Object value)
Method that can be used to serialize any Java value as JSON output, written to File provided.
voidwriteValue(OutputStream out, Object value)
Method that can be used to serialize any Java value as JSON output, using output stream provided (using encoding JsonEncoding#UTF8 ).
voidwriteValue(Writer w, Object value)
Method that can be used to serialize any Java value as JSON output, using Writer provided.
byte[]writeValueAsBytes(Object value)
Method that can be used to serialize any Java value as a byte array.
StringwriteValueAsString(Object value)
Method that can be used to serialize any Java value as a String.