Class UTF8Reader
java.lang.Object
java.io.Reader
com.fasterxml.jackson.dataformat.toml.UTF8Reader
- All Implemented Interfaces:
Closeable, AutoCloseable, Readable
Optimized Reader that reads UTF-8 encoded content from an input stream.
Content may come either from a static
byte[] buffer or
InputStream.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanMethod that can be used to see if we can actually modify the underlying buffer.voidclose()static UTF8Readerconstruct(byte[] buf, int ptr, int len) static UTF8Readerconstruct(com.fasterxml.jackson.core.io.IOContext ctxt, InputStream in, boolean autoClose) intread()intread(char[] cbuf) intread(char[] cbuf, int start, int len) protected final intprotected final intreadBytesAt(int offset) protected voidreportBounds(char[] cbuf, int start, int len) protected voidMethods inherited from class Reader
mark, markSupported, nullReader, of, read, readAllAsString, readAllLines, ready, reset, skip, transferTo
-
Method Details
-
construct
public static UTF8Reader construct(com.fasterxml.jackson.core.io.IOContext ctxt, InputStream in, boolean autoClose) -
construct
-
canModifyBuffer
protected final boolean canModifyBuffer()Method that can be used to see if we can actually modify the underlying buffer. This is the case if we are managing the buffer, but not if it was just given to us. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
read
- Overrides:
readin classReader- Throws:
IOException
-
read
- Overrides:
readin classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-
readBytes
- Throws:
IOException
-
readBytesAt
- Throws:
IOException
-
reportBounds
- Throws:
IOException
-
reportStrangeStream
- Throws:
IOException
-