Class DelegateJsonWriter

java.lang.Object
io.avaje.json.stream.DelegateJsonWriter
All Implemented Interfaces:
JsonWriter, Closeable, Flushable, AutoCloseable

public abstract class DelegateJsonWriter extends Object implements JsonWriter
Provides a delegating JsonWriter.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Set the property names that will be used for all json generation.
    final void
    Write array begin.
    final void
    Write object begin.
    final void
    Write object being and use the already encoded property names.
    void
    Close the writer.
    final void
    Write empty array.
    final void
    Write array end.
    final void
    Write object end.
    final void
    Flush the writer.
    final void
    Write a value that could be any value.
    void
    Mark the generated json as not completed due to an error.
    final void
    name(int position)
    Set the next property name to write by position.
    final void
    name(String name)
    Set the next property name to write.
    final void
    Write null value.
    final String
    Return the current path.
    final void
    pretty(boolean pretty)
    Set tp true to output json in pretty format.
    void
    Write raw JSON content.
    final boolean
    Return true if empty collections should be serialised.
    final void
    serializeEmpty(boolean serializeEmpty)
    Set to serialise empty collections or not.
    final boolean
    Return true if null values should be serialised.
    final void
    serializeNulls(boolean serializeNulls)
    Set to serialise null values or not.
    <T> T
    unwrap(Class<T> type)
    Unwrap the underlying generator being used.
    final void
    value(boolean value)
    Write a boolean value.
    void
    value(byte[] value)
    Write binary content as base64.
    final void
    value(double value)
    Write a double value.
    final void
    value(int value)
    Write an int value.
    final void
    value(long value)
    Write a long value.
    final void
    value(Boolean value)
    Write a Boolean value.
    final void
    value(Double value)
    Write a Double value.
    final void
    value(Integer value)
    Write an Integer value.
    final void
    value(Long value)
    Write a Long value.
    final void
    value(String value)
    Write a string value.
    final void
    Write a BigDecimal value.
    final void
    Write a BigInteger value.
    final void
    Write new line characters typically for x-json-stream content.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait