January 2002
Intermediate to advanced
264 pages
8h 3m
English
java.io.InputStreamReader
This class is a slightly modified version of the
InputStreamReader class used in J2SE. The class
creates a character input stream, which translates data coming from a
byte input stream, based on a specific encoding. The
read() method reads in a single character value or
an array of characters. The skip() method skips
over the specified number of characters. The
ready() method returns a Boolean, indicating
whether the stream is ready to be read.
public classInputStreamReaderextends java.io.Reader { // constructors publicInputStreamReader(InputStream is); publicInputStreamReader(InputStream is, String enc) throws java.io.UnsupportedEncodingException; // public instance methods public voidclose() throws java.io.IOException; public voidmark(int readAheadLimit) throws java.io.IOException; public booleanmarkSupported(); public intread() throws java.io.IOException; public intread(char[] cbuf, int off, int len) throws java.io.IOException; public booleanready() throws java.io.IOException; public voidreset() throws java.io.IOException; public longskip(long n) throws java.io.IOException; }
Read now
Unlock full access