Class BambooUTF8Reader

java.lang.Object
java.io.Reader
com.ctc.wstx.io.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 Details

    • NULL_CHAR

      protected static final char NULL_CHAR
      See Also:
    • NULL_BYTE

      protected static final char NULL_BYTE
      See Also:
    • CONVERT_NEL_TO

      protected static final char CONVERT_NEL_TO
      See Also:
    • CONVERT_LSEP_TO

      protected static final char CONVERT_LSEP_TO
      See Also:
    • mConfig

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

      protected byte[] mByteBuffer
    • mBytePtr

      protected int mBytePtr
    • mByteBufferEnd

      protected int mByteBufferEnd
    • mTmpBuf

      protected char[] mTmpBuf
  • Constructor Details

    • BambooUTF8Reader

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