Public class PipedWriter extends Writer
Constructor | Description |
---|---|
PipedWriter() | The function of this constructor is to create the piped writer instance and not connected with piped reader. |
PipedWriter(PipedReader snk) | The function of this constructor is to create the piped writer instance which is connected to the represented piped reader. |
Method | Description |
---|---|
void close () | The function of this method is to close the present stream and associated to input stream systems resources are released. |
void connect(pipedReader snk) | The function of this method is to connect the piped writer is with piped reader . |
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. |
void write(int c) | The function of this method is to write the represented character into output stream. |