Public class Reader extends Object implements DataOutput, DataInput, Closeable
Constructor | Description |
---|---|
Protected Reader () | The function of this constructor is to create the reader instance and used to read character stream. |
Protected Reader(Object lock) | The function of this constructor is to create the reader instance and synchronize the sections in the given object. |
Method | Description |
---|---|
abstract void close () | The function of this method is to close the present stream and associated to input stream systems resources are released. |
Boolean markSupported () | The function of this method is to check the represented mark method is supported by this stream 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 character buffer. |
Long skip (long m) | The function of this method is to skip the text or characters in this stream of ‘ m ‘ characters. |
int read() | The function of this method is to read only one character. |