java.lang.Objectjava.io.Reader
java.io.InputStreamReader
All Implemented Interfaces:
Closeable, Readable
Direct Known Subclasses:
FileReader
charset . The charset that it uses
may be specified by name or may be given explicitly, or the platform's
default charset may be accepted.
Each invocation of one of an InputStreamReader's read() methods may cause one or more bytes to be read from the underlying byte-input stream. To enable the efficient conversion of bytes to characters, more bytes may be read ahead from the underlying stream than are necessary to satisfy the current read operation.
For top efficiency, consider wrapping an InputStreamReader within a BufferedReader. For example:
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
Mark - ReinholdJDK1.1 - | Fields inherited from java.io.Reader: |
|---|
| lock |
| Constructor: |
|---|
|
|
|
|
| Method from java.io.InputStreamReader Summary: |
|---|
| close, getEncoding, read, read, ready |
| Methods from java.io.Reader: |
|---|
| close, mark, markSupported, read, read, read, read, ready, reset, skip |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.io.InputStreamReader Detail: |
|---|
|
If the encoding has an historical name then that name is returned; otherwise the encoding's canonical name is returned. If this instance was created with the #InputStreamReader(InputStream, String) constructor then the returned
name, being unique for the encoding, may differ from the name passed to
the constructor. This method will return |
|
|
|