Sunday 10 March 2013

InputStreamReader


InputStreamReader

Declaration
public class InputStreamReader extends Reader
java.lang.Object
|
+--java.io.Reader
|
+--java.io.InputStreamReader
Description
An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and translates them
into characters. The encoding that it uses may be specified by name, or the platform’s default encoding 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.
Since: CLDC 1.0


Constructors
InputStreamReader(InputStream is)
InputStreamReader(InputStream is, java.lang.String enc)
Methods
void close()
void mark(int readAheadLimit)
boolean markSupported()
int read()
int read(char[] cbuf, int off, int len)
boolean ready()
void reset()
long skip(long n)

Fields inherited from class Reader
lock

Methods inherited from class Object
equals(Object), getClass(), hashCode(), notify(), notifyAll(), toString(), wait(),
wait(), wait()
Methods inherited from class Reader
read(char[])




No comments:

Post a Comment