Package java.io
Class PipedOutputStream

Public Method connect

void connect(PipedInputStream sink)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

This method connects this piped output stream to a receiver. If this object is already connected to some other piped input stream, an IOException is thrown.

Example

   PipedOutputStream pos = new PipedOutputStream();
   PipedInputStream pis = new PipedInputStream();

   pos.connect(pis);

The connect method connects the piped output stream with the piped input stream.