PipedOutputStream.Connect(PipedInputStream) Method

Definition

Connects this piped output stream to a receiver.

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

Parameters

snk
PipedInputStream

the piped input stream to connect to.

Attributes

Exceptions

if either stream is already connected.

Remarks

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: <blockquote>

src.connect(snk)

</blockquote> or the call: <blockquote>

snk.connect(src)

</blockquote> The two calls have the same effect.

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

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