共用方式為


PipedReader.Connect(PipedWriter) Method

Definition

Causes this piped reader to be connected to the piped writer src.

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

Parameters

src
PipedWriter

The piped writer to connect to.

Attributes

Exceptions

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

Remarks

Causes this piped reader to be connected to the piped writer src. If this object is already connected to some other piped writer, an IOException is thrown.

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

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