java.lang.Object
tools.jackson.core.JsonGenerator
tools.jackson.core.base.GeneratorBase
tools.jackson.dataformat.javaprop.JavaPropsGenerator
tools.jackson.dataformat.javaprop.impl.WriterBackedGenerator
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, tools.jackson.core.Versioned

public class WriterBackedGenerator extends JavaPropsGenerator
  • Field Details

    • _out

      protected final Writer _out
      Underlying Writer used for output.
    • _outputBuffer

      protected char[] _outputBuffer
      Intermediate buffer in which contents are buffered before being written using _out.
    • _outputTail

      protected int _outputTail
      Pointer to the next available location in _outputBuffer
    • _outputEnd

      protected final int _outputEnd
      Offset to index after the last valid index in _outputBuffer. Typically same as length of the buffer.
  • Constructor Details

    • WriterBackedGenerator

      public WriterBackedGenerator(tools.jackson.core.ObjectWriteContext writeCtxt, tools.jackson.core.io.IOContext ioCtxt, int stdFeatures, JavaPropsSchema schema, Writer out)
  • Method Details

    • streamWriteOutputTarget

      public Object streamWriteOutputTarget()
      Specified by:
      streamWriteOutputTarget in class tools.jackson.core.JsonGenerator
    • streamWriteOutputBuffered

      public int streamWriteOutputBuffered()
      Specified by:
      streamWriteOutputBuffered in class tools.jackson.core.JsonGenerator
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class tools.jackson.core.base.GeneratorBase
    • _closeInput

      protected void _closeInput() throws IOException
      Specified by:
      _closeInput in class tools.jackson.core.base.GeneratorBase
      Throws:
      IOException
    • flush

      public void flush()
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in class tools.jackson.core.JsonGenerator
    • _releaseBuffers

      protected void _releaseBuffers()
      Specified by:
      _releaseBuffers in class tools.jackson.core.base.GeneratorBase
    • _flushBuffer

      protected void _flushBuffer() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _appendPropertyName

      protected void _appendPropertyName(StringBuilder path, String name)
      Specified by:
      _appendPropertyName in class JavaPropsGenerator
    • _writeEscapedEntry

      protected void _writeEscapedEntry(String value) throws tools.jackson.core.JacksonException
      Specified by:
      _writeEscapedEntry in class JavaPropsGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _writeEscapedEntry

      protected void _writeEscapedEntry(char[] text, int offset, int len) throws tools.jackson.core.JacksonException
      Specified by:
      _writeEscapedEntry in class JavaPropsGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _writeUnescapedEntry

      protected void _writeUnescapedEntry(String value) throws tools.jackson.core.JacksonException
      Specified by:
      _writeUnescapedEntry in class JavaPropsGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _writeEscaped

      protected void _writeEscaped(String value) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _writeEscaped

      protected void _writeEscaped(char[] text, int offset, int len) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _writeLinefeed

      protected void _writeLinefeed() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _writeRaw

      protected void _writeRaw(char c) throws tools.jackson.core.JacksonException
      Specified by:
      _writeRaw in class JavaPropsGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _writeRaw

      protected void _writeRaw(String text) throws tools.jackson.core.JacksonException
      Specified by:
      _writeRaw in class JavaPropsGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _writeRaw

      protected void _writeRaw(StringBuilder text) throws tools.jackson.core.JacksonException
      Specified by:
      _writeRaw in class JavaPropsGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _writeRaw

      protected void _writeRaw(char[] text, int offset, int len) throws tools.jackson.core.JacksonException
      Specified by:
      _writeRaw in class JavaPropsGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _writeRawLong

      protected void _writeRawLong(String text) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _writeRawLong

      protected void _writeRawLong(StringBuilder text) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException