public class InputStreamReader extends Reader
Constructor and Description |
---|
InputStreamReader(InputStream is)
Create an InputStreamReader that uses the default character encoding.
|
InputStreamReader(InputStream is,
String enc)
Create an InputStreamReader that uses the named character encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the stream.
|
void |
mark(int readAheadLimit)
Mark the present position in the stream.
|
boolean |
markSupported()
Tell whether this stream supports the mark() operation.
|
int |
read()
Read a single character.
|
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array.
|
boolean |
ready()
Tell whether this stream is ready to be read.
|
void |
reset()
Reset the stream.
|
long |
skip(long n)
Skip characters.
|
public InputStreamReader(InputStream is)
public InputStreamReader(InputStream is, String enc) throws UnsupportedEncodingException
UnsupportedEncodingException
public void close() throws IOException
close
in interface AutoCloseable
close
in class Reader
IOException
public void mark(int readAheadLimit) throws IOException
mark
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
public void reset() throws IOException
reset
in class Reader
IOException
public long skip(long n) throws IOException
skip
in class Reader
IOException