public interface Reader
For compatibility with GWT, the native Java Reader implementation
cannot be used.
ReaderAdapter,
StringR| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream and releases any system resources associated with it.
|
int |
read()
Reads a single character.
|
int |
read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
int read() throws IOException
Subclasses that intend to support efficient single-character input should override this method.
IOException - If an I/O error occursint read(char[] cbuf,
int off,
int len)
throws IOException
cbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to readIOException - If an I/O error occursvoid close()
throws IOException
IOException. Closing
a previously closed stream has no effect.IOException - If an I/O error occursCopyright © 2021. All rights reserved.