Class WriterBackedGenerator

  • All Implemented Interfaces:
    com.fasterxml.jackson.core.Versioned, java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class WriterBackedGenerator
    extends JavaPropsGenerator
    • Field Detail

      • _out

        protected final java.io.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 Detail

      • WriterBackedGenerator

        public WriterBackedGenerator​(com.fasterxml.jackson.core.io.IOContext ctxt,
                                     java.io.Writer out,
                                     int stdFeatures,
                                     com.fasterxml.jackson.core.ObjectCodec codec)
    • Method Detail

      • getOutputTarget

        public java.lang.Object getOutputTarget()
        Overrides:
        getOutputTarget in class com.fasterxml.jackson.core.JsonGenerator
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class com.fasterxml.jackson.core.base.GeneratorBase
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class com.fasterxml.jackson.core.base.GeneratorBase
        Throws:
        java.io.IOException
      • _releaseBuffers

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

        protected void _flushBuffer()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • _appendFieldName

        protected void _appendFieldName​(java.lang.StringBuilder path,
                                        java.lang.String name)
        Specified by:
        _appendFieldName in class JavaPropsGenerator
      • _writeEscapedEntry

        protected void _writeEscapedEntry​(java.lang.String value)
                                   throws java.io.IOException
        Specified by:
        _writeEscapedEntry in class JavaPropsGenerator
        Throws:
        java.io.IOException
      • _writeEscapedEntry

        protected void _writeEscapedEntry​(char[] text,
                                          int offset,
                                          int len)
                                   throws java.io.IOException
        Specified by:
        _writeEscapedEntry in class JavaPropsGenerator
        Throws:
        java.io.IOException
      • _writeUnescapedEntry

        protected void _writeUnescapedEntry​(java.lang.String value)
                                     throws java.io.IOException
        Specified by:
        _writeUnescapedEntry in class JavaPropsGenerator
        Throws:
        java.io.IOException
      • _writeEscaped

        protected void _writeEscaped​(java.lang.String value)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • _writeEscaped

        protected void _writeEscaped​(char[] text,
                                     int offset,
                                     int len)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • _writeLinefeed

        protected void _writeLinefeed()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • _writeRaw

        protected void _writeRaw​(char c)
                          throws java.io.IOException
        Specified by:
        _writeRaw in class JavaPropsGenerator
        Throws:
        java.io.IOException
      • _writeRaw

        protected void _writeRaw​(java.lang.String text)
                          throws java.io.IOException
        Specified by:
        _writeRaw in class JavaPropsGenerator
        Throws:
        java.io.IOException
      • _writeRaw

        protected void _writeRaw​(java.lang.StringBuilder text)
                          throws java.io.IOException
        Specified by:
        _writeRaw in class JavaPropsGenerator
        Throws:
        java.io.IOException
      • _writeRaw

        protected void _writeRaw​(char[] text,
                                 int offset,
                                 int len)
                          throws java.io.IOException
        Specified by:
        _writeRaw in class JavaPropsGenerator
        Throws:
        java.io.IOException
      • _writeRawLong

        protected void _writeRawLong​(java.lang.String text)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • _writeRawLong

        protected void _writeRawLong​(java.lang.StringBuilder text)
                              throws java.io.IOException
        Throws:
        java.io.IOException