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 ReaderIOException - ?public String getEncoding()
public int read()
throws IOException
read in class ReaderIOException - ?public int read(char[] buf,
int ofs,
int len)
throws IOException
read in class Readerbuf - 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 ReaderIOException - ?