Public class PipedOutputStream extends OutputStream
Constructor | Description |
---|---|
PipedOutputStream() | The function of this constructor is to create the piped output stream instance and not connected with piped input stream. |
PipedOutputStream(PipedInputStream snk) | The function of this constructor is to create the piped output stream instance which is connected to the represented piped input stream. |
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(pipedInputStream snk) | The function of this method is to connect the piped output stream with piped input stream. |
void write(byte[] b, int off, int n) | By using this method it writes the data up to ‘n’ bytes from the output stream to an array of bytes. |
void write(int b) | The function of this method is to write the represented bytes into output stream. |