public final class UTF8Reader extends Reader
| Constructor and Description | 
|---|
| UTF8Reader(com.fasterxml.jackson.core.io.IOContext ctxt,
          byte[] buf,
          int ptr,
          int len) | 
| UTF8Reader(com.fasterxml.jackson.core.io.IOContext ctxt,
          InputStream in,
          boolean autoClose) | 
| UTF8Reader(com.fasterxml.jackson.core.io.IOContext ctxt,
          InputStream in,
          boolean autoClose,
          byte[] buf,
          int ptr,
          int len) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | canModifyBuffer()Method that can be used to see if we can actually modify the
 underlying buffer. | 
| void | close() | 
| void | freeBuffers()This method should be called along with (or instead of) normal
 close. | 
| protected InputStream | getStream() | 
| int | read()Although this method is implemented by the base class, AND it should
 never be called by parser code, let's still implement it bit more
 efficiently just in case | 
| int | read(char[] cbuf) | 
| int | read(char[] cbuf,
    int start,
    int len) | 
| protected int | readBytes()Method for reading as many bytes from the underlying stream as possible
 (that fit in the buffer), to the beginning of the buffer. | 
| protected int | readBytesAt(int offset)Method for reading as many bytes from the underlying stream as possible
 (that fit in the buffer considering offset), to the specified offset. | 
| protected void | reportBounds(char[] cbuf,
            int start,
            int len) | 
| protected void | reportInvalidInitial(int mask,
                    int offset) | 
| protected void | reportInvalidOther(int mask,
                  int offset) | 
| protected void | reportStrangeStream() | 
| protected void | reportUnexpectedEOF(int gotBytes,
                   int needed) | 
public UTF8Reader(com.fasterxml.jackson.core.io.IOContext ctxt,
          InputStream in,
          boolean autoClose,
          byte[] buf,
          int ptr,
          int len)
public UTF8Reader(com.fasterxml.jackson.core.io.IOContext ctxt,
          byte[] buf,
          int ptr,
          int len)
public UTF8Reader(com.fasterxml.jackson.core.io.IOContext ctxt,
          InputStream in,
          boolean autoClose)
protected final boolean canModifyBuffer()
public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic int read()
         throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf)
         throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
       int start,
       int len)
         throws IOException
read in class ReaderIOExceptionprotected final InputStream getStream()
protected final int readBytes()
                       throws IOException
IOExceptionprotected final int readBytesAt(int offset)
                         throws IOException
IOExceptionpublic final void freeBuffers()
protected void reportInvalidInitial(int mask,
                        int offset)
                             throws IOException
IOExceptionprotected void reportInvalidOther(int mask,
                      int offset)
                           throws IOException
IOExceptionprotected void reportUnexpectedEOF(int gotBytes,
                       int needed)
                            throws IOException
IOExceptionprotected void reportBounds(char[] cbuf,
                int start,
                int len)
                     throws IOException
IOExceptionprotected void reportStrangeStream()
                            throws IOException
IOExceptionCopyright © 2016 FasterXML. All rights reserved.