Class Latin1Reader
java.lang.Object
java.io.Reader
com.fasterxml.jackson.dataformat.javaprop.io.Latin1Reader
- All Implemented Interfaces:
Closeable, AutoCloseable, Readable
Optimized Reader that reads ISO-8859-1 encoded content from an input stream.
The reason for custom implementation is that this allows recycling of
underlying read buffer, which is important for small content.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLatin1Reader(byte[] buf, int ptr, int len) Latin1Reader(com.fasterxml.jackson.core.io.IOContext ctxt, InputStream in) -
Method Summary
Methods inherited from class Reader
mark, markSupported, nullReader, of, read, readAllAsString, readAllLines, ready, reset, skip, transferTo
-
Constructor Details
-
Latin1Reader
public Latin1Reader(byte[] buf, int ptr, int len) -
Latin1Reader
-
-
Method Details
-
getReadCharsCount
public int getReadCharsCount() -
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
-