Class BambooUTF8Reader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Readable

    public final class BambooUTF8Reader
    extends Reader
    Optimized Reader that reads UTF-8 encoded content from an input stream. In addition to doing (hopefully) optimal conversion, it can also take array of "pre-read" (leftover) bytes; this is necessary when preliminary stream/reader is trying to figure out XML encoding.
    • Field Detail

      • mConfig

        protected final com.ctc.wstx.api.ReaderConfig mConfig
      • mByteBuffer

        protected byte[] mByteBuffer
      • mBytePtr

        protected int mBytePtr
      • mByteBufferEnd

        protected int mByteBufferEnd
    • Constructor Detail

      • BambooUTF8Reader

        public BambooUTF8Reader​(com.ctc.wstx.api.ReaderConfig cfg,
                                InputStream in,
                                byte[] buf,
                                int ptr,
                                int len,
                                boolean recycleBuffer)