Public abstract class InputStreamReader extends Reader
Constructor | Description |
---|---|
InputStreamReader(InputStream in) | The function of this constructor is to create the input stream reader instance. |
InputStreamReader(InputStream in, Charset cs) | The function of this constructor is to create the input stream reader instance with specified charset. |
InputStreamReader (InputStream in, String CharsetName ) | The function of this constructor is to create the input stream reader instance with specified name of charset. |
Method | Description |
---|---|
void close () | The function of this method is to close the present stream and associated to input stream systems resources are released. |
Boolean ready () | The function of this method is to check the stream is ready to read or not. |
int read(Char[] cbuf, int off, int n) | By using this method it reads the data up to ‘n’ bytes from the character stream into an array of characters. |
String getEncoding() | The function of this method is to get the name of encoded character which was used by this input stream. |
int read() | The function of this method is to read only one character. |