Share via


PipedWriter.Connect(PipedReader) Method

Definition

Connects this piped writer to a receiver.

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

Parameters

snk
PipedReader

the piped reader to connect to.

Attributes

Exceptions

if this writer is closed or already connected, or if reader is already connected.

Remarks

Connects this piped writer to a receiver. If this object is already connected to some other piped reader, an IOException is thrown.

If snk is an unconnected piped reader and src is an unconnected piped writer, 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.PipedWriter.connect(java.io.PipedReader).

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