The Java.io.Reader class is a abstract class for reading character streams.
Following is the declaration for Java.io.Reader class:
public class Reader extends Object implements DataOutput, DataInput, Closeable
Following are the fields for Java.io.Reader class:
protected Object lock -- This is the object used to synchronize operations on this stream.
|S.N.||Constructor & Description|
This creates a new character-stream reader whose critical sections will synchronize on the reader itself.
protected Reader(Object lock)
This creates a new character-stream reader whose critical sections will synchronize on the given object.
|S.N.||Method & Description|
This method closes the stream and releases any system resources associated with it.
This method marks the present position in the stream.
This method tells whether this stream supports the mark() operation.
This method reads a single character.
This method reads characters into an array.
This method reads characters into a portion of an array.
This method attempts to read characters into the specified character buffer.
This method tells whether this stream is ready to be read.
This method resets the stream.
This method skips characters.
This class inherits methods from the following classes: