Connects this piped output stream to a receiver. If this object
is already connected to some other piped input stream, an
IOException is thrown.
If snk is an unconnected piped input stream and
src is an unconnected piped output stream, they may
be connected by either the call:
or the call:src.connect(snk)
The two calls have the same effect.snk.connect(src)
snk | the piped input stream to connect to. |
IOException | if an I/O error occurs. |
Diagram: OutputStream