PipedInputStream.Connect(PipedOutputStream) Method

Definition

Causes this piped input stream to be connected to the piped output stream src.

[Android.Runtime.Register("connect", "(Ljava/io/PipedOutputStream;)V", "GetConnect_Ljava_io_PipedOutputStream_Handler")]
public virtual void Connect (Java.IO.PipedOutputStream? src);
[<Android.Runtime.Register("connect", "(Ljava/io/PipedOutputStream;)V", "GetConnect_Ljava_io_PipedOutputStream_Handler")>]
abstract member Connect : Java.IO.PipedOutputStream -> unit
override this.Connect : Java.IO.PipedOutputStream -> unit

Parameters

src
PipedOutputStream

The piped output stream to connect to.

Attributes

Exceptions

if either stream is already connected.

Remarks

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:

<code>snk.connect(src)</code>

or the call:

<code>src.connect(snk)</code>

The two calls have the same effect.

Java documentation for java.io.PipedInputStream.connect(java.io.PipedOutputStream).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to