The Java.io.Writer class is a abstract class for writing to character streams.
Following is the declaration for Java.io.Writer class:
public abstract class Writer extends Object implements Appendable, Closeable, Flushable
Following are the fields for Java.io.Writer 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 writer whose critical sections will synchronize on the writer itself.
protected Writer(Object lock)
This creates a new character-stream writer whose critical sections will synchronize on the given object.
|S.N.||Method & Description|
This method appends the specified character to this writer.
This method appends the specified character sequence to this writer.
This method appends a subsequence of the specified character sequence to this writer.
This method loses the stream, flushing it first.
This method flushes the stream.
This method writes an array of characters.
This method writes a portion of an array of characters.
This method writes a single character.
This method writes a string.
This method writes a portion of a string.
This class inherits methods from the following classes: