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.
Marks the present position in the stream. Subsequent calls to reset() will reposition the stream to this point.
readAheadLimit | Limit on the number of characters that may be read while still preserving the mark. Because the stream's input comes from a character array, there is no actual limit; hence this argument is ignored. |
IOException | If an I/O error occurs |
Tells whether this stream supports the mark() operation, which it does.
Reads a single character.
IOException | If an I/O error occurs |
Reads characters into a portion of an array.
b | Destination buffer | |
off | Offset at which to start storing characters | |
len | Maximum number of characters to read |
IOException | If an I/O error occurs |
Tells whether this stream is ready to be read. Character-array readers are always ready to be read.
IOException | If an I/O error occurs |
Resets the stream to the most recent mark, or to the beginning if it has never been marked.
IOException | If an I/O error occurs |
Skips characters. Returns the number of characters that were skipped.
The n parameter may be negative, even though the
skip method of the Reader superclass throws
an exception in this case. If n is negative, then
this method does nothing and returns 0.
n | The number of characters to skip |
IOException | If the stream is closed, or an I/O error occurs |
Diagram: Reader