public class InputStreamReader extends Reader
Constructor and Description |
---|
InputStreamReader(InputStream inputstream) |
InputStreamReader(InputStream inputstream,
String s) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getEncoding() |
int |
read() |
int |
read(char[] buf,
int ofs,
int len)
Read block of data.
|
boolean |
ready() |
public InputStreamReader(InputStream inputstream)
inputstream
- ?public InputStreamReader(InputStream inputstream, String s) throws UnsupportedEncodingException
inputstream
- ?s
- ?UnsupportedEncodingException
- ?public void close() throws IOException
close
in class Reader
IOException
- ?public String getEncoding()
public int read() throws IOException
read
in class Reader
IOException
- ?public int read(char[] buf, int ofs, int len) throws IOException
read
in class Reader
buf
- byte array buffer to receive dataofs
- offset into the byte array bufferlen
- length of the desired readIOException
- on errorpublic boolean ready() throws IOException
ready
in class Reader
IOException
- ?