Name
java.io.InputStreamReader
Synopsis
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 classInputStreamReader
extends 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; }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.