Public class Writer extends Object implements Flushable, Appendable, Closeable
Constructor | Description |
---|---|
Protected writer () | The function of this constructor is to create the writer instance and used to write character stream. |
Protected Writer(Object lock) | The function of this constructor is to create the writer 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. |
abstract void flush () | The function of this method is to flush the specified output stream. |
void write (int c) | The function of this method is to write the represented character into output stream. |
abstract void write (Char[] cbuf, int off, int n) | By using this method it writes the data up to ‘n’ length from the output stream to an array of Characters. |
write append (CharacterSequence cs) | The function of this method is to write the represented append character sequence into output stream. |