| Modifier and Type | Field and Description |
|---|---|
| private int | _charCount
Total read character count; used for error reporting purposes |
| private byte[] | |
| private int | _inputEnd
Pointed to the end marker, that is, position one after the last valid available byte. |
| private int | _inputPtr
Pointer to the next available byte (if any), iff less than
|
| private InputStream | |
| private final IOContext | _ioContext
IO context to use for returning input buffer, iff buffer is to be recycled when input ends. |
| private char[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes the stream and releases any system resources associated with it. |
| private final void | |
| public int | |
| private boolean | Returns: True, if enough bytes were read to allow decoding of at least one full character; false if EOF was encountered instead.
|
| public int | |
| public int | |
| public int | read(char[]
Destination buffer cbuf, int Offset at which to start storing characters start, int Maximum number of characters to read len)Implements abstract java. Reads characters into a portion of an array. |
| _charCount | back to summary |
|---|---|
| private int _charCount Total read character count; used for error reporting purposes | |
| _inputBuffer | back to summary |
|---|---|
| private byte[] _inputBuffer | |
| _inputEnd | back to summary |
|---|---|
| private int _inputEnd Pointed to the end marker, that is, position one after the last valid available byte. | |
| _inputPtr | back to summary |
|---|---|
| private int _inputPtr Pointer to the next available byte (if any), iff less than
| |
| _inputSource | back to summary |
|---|---|
| private InputStream _inputSource | |
| _ioContext | back to summary |
|---|---|
| private final IOContext _ioContext IO context to use for returning input buffer, iff buffer is to be recycled when input ends. | |
| _tmpBuffer | back to summary |
|---|---|
| private char[] _tmpBuffer | |
| Latin1Reader | back to summary |
|---|---|
| public Latin1Reader(byte[] buf, int ptr, int len) | |
| Latin1Reader | back to summary |
|---|---|
| public Latin1Reader(IOContext ctxt, InputStream in) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), reset(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
| |
| freeBuffers | back to summary |
|---|---|
| private final void freeBuffers() This method should be called along with (or instead of) normal close. After calling this method, no further reads should be tried. Method will try to recycle read buffers (if any). | |
| getReadCharsCount | back to summary |
|---|---|
| public int getReadCharsCount() | |
| loadMore | back to summary |
|---|---|
private boolean loadMore() throws IOException
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached. Subclasses that intend to support efficient single-character input should override this method.
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf) throws IOException Overrides java. Doc from java. Reads characters into an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If the length of
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int start, int len) throws IOException Implements abstract java. Doc from java. Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If
| |