java.lang.Object
java.io.Reader
tools.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 TypeMethodDescriptionvoidclose()static UTF8Readerconstruct(byte[] buf, int ptr, int len) static UTF8Readerconstruct(tools.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 java.io.Reader
mark, markSupported, nullReader, read, ready, reset, skip, transferTo
-
Method Details
-
construct
public static UTF8Reader construct(tools.jackson.core.io.IOContext ctxt, InputStream in, boolean autoClose) -
construct
-
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
-