Example usage for Java com.fasterxml.jackson.databind ObjectWriter fields, constructors, methods, implement or subclass
The text is from its open source code.
ObjectWriter | with(SerializationFeature feature) Method for constructing a new instance that is configured with specified feature 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 | with(FilterProvider filterProvider) Method that will construct a new instance that uses specified provider for resolving filter instances by id. |
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 | with(Locale l) |
ObjectWriter | with(TimeZone tz) |
ObjectWriter | with(Base64Variant b64variant) Method that will construct a new instance that uses specified default Base64Variant for base64 encoding |
ObjectWriter | with(CharacterEscapes escapes) |
ObjectWriter | with(JsonFactory f) |
ObjectWriter | with(ContextAttributes attrs) |
ObjectWriter | withDefaultPrettyPrinter() Method that will construct a new instance that will use the default pretty printer for serialization. |
ObjectWriter | withRootName(String rootName) Method for constructing a new instance with configuration that specifies what root name to use for "root element wrapping". |
ObjectWriter | withView(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. |
void | writeValue(JsonGenerator jgen, Object value) Method that can be used to serialize any Java value as JSON output, using provided JsonGenerator . |
void | writeValue(File resultFile, Object value) Method that can be used to serialize any Java value as JSON output, written to File provided. |
void | writeValue(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 ). |
void | writeValue(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. |
String | writeValueAsString(Object value) Method that can be used to serialize any Java value as a String. |