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