public final class ReaderAdapter extends Object implements Reader
| Constructor and Description |
|---|
ReaderAdapter(Reader in)
Creates a
ReaderAdapter. |
| 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.
|
public ReaderAdapter(Reader in)
ReaderAdapter.public int read()
throws IOException
ReaderSubclasses that intend to support efficient single-character input should override this method.
read in interface ReaderIOException - If an I/O error occurspublic int read(char[] cbuf,
int off,
int len)
throws IOException
Readerread in interface Readercbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to readIOException - If an I/O error occurspublic void close()
throws IOException
ReaderIOException. Closing
a previously closed stream has no effect.close in interface ReaderIOException - If an I/O error occursCopyright © 2021. All rights reserved.