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 Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf) throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int start, int len) throws IOException
read
in class Reader
IOException
protected final InputStream getStream()
protected final int readBytes() throws IOException
IOException
protected final int readBytesAt(int offset) throws IOException
IOException
public final void freeBuffers()
protected void reportInvalidInitial(int mask, int offset) throws IOException
IOException
protected void reportInvalidOther(int mask, int offset) throws IOException
IOException
protected void reportUnexpectedEOF(int gotBytes, int needed) throws IOException
IOException
protected void reportBounds(char[] cbuf, int start, int len) throws IOException
IOException
protected void reportStrangeStream() throws IOException
IOException
Copyright © 2016 FasterXML. All rights reserved.