Class JsonbOutput

java.lang.Object
io.avaje.jex.core.json.JsonbOutput
All Implemented Interfaces:
io.avaje.json.stream.JsonOutput, Closeable, AutoCloseable

public final class JsonbOutput extends Object implements io.avaje.json.stream.JsonOutput
avaje-jsonb output that allows for writing fixed length content straight from the avaje-jsonb buffer, avoiding the jex side buffer.
  • Method Details

    • of

      public static io.avaje.json.stream.JsonOutput of(Context context)
    • write

      public void write(byte[] content, int offset, int length) throws IOException
      Specified by:
      write in interface io.avaje.json.stream.JsonOutput
      Throws:
      IOException
    • writeLast

      public void writeLast(byte[] content, int offset, int length) throws IOException
      Specified by:
      writeLast in interface io.avaje.json.stream.JsonOutput
      Throws:
      IOException
    • flush

      public void flush()
      Specified by:
      flush in interface io.avaje.json.stream.JsonOutput
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • unwrapOutputStream

      public OutputStream unwrapOutputStream()
      Specified by:
      unwrapOutputStream in interface io.avaje.json.stream.JsonOutput