| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer | |
| private final CharBuffer | |
| private final CharsetEncoder | |
| private long | |
| private final Reader | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| private boolean | |
| private void | |
| public long | Returns: the number of charactersThe number of characters read so far (but there might still be some bytes in the buffer). |
| public int | read(byte[]
the buffer into which the data is read. buff, int the start offset in array offset, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| byteBuffer | back to summary |
|---|---|
| private ByteBuffer byteBuffer | |
| charBuffer | back to summary |
|---|---|
| private final CharBuffer charBuffer | |
| encoder | back to summary |
|---|---|
| private final CharsetEncoder encoder | |
| length | back to summary |
|---|---|
| private long length | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| remaining | back to summary |
|---|---|
| private long remaining | |
| CountingReaderInputStream | back to summary |
|---|---|
| public CountingReaderInputStream(Reader reader, long maxLength) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| fetch | back to summary |
|---|---|
| private boolean fetch() throws IOException | |
| fillBuffer | back to summary |
|---|---|
| private void fillBuffer() throws IOException | |
| getLength | back to summary |
|---|---|
| public long getLength() The number of characters read so far (but there might still be some bytes in the buffer).
| |
| read | back to summary |
|---|---|
| public int read(byte[] buff, int offset, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |