Udostępnij za pośrednictwem


PipedWriter.Write(Char[], Int32, Int32) Method

Definition

Writes len characters from the specified character array starting at offset off to this piped output stream.

[Android.Runtime.Register("write", "([CII)V", "GetWrite_arrayCIIHandler")]
public override void Write (char[]? cbuf, int off, int len);
[<Android.Runtime.Register("write", "([CII)V", "GetWrite_arrayCIIHandler")>]
override this.Write : char[] * int * int -> unit

Parameters

cbuf
Char[]

the data.

off
Int32

the start offset in the data.

len
Int32

the number of characters to write.

Attributes

Exceptions

if offset or count , or if offset + count is bigger than the length of buffer.

if the pipe is full and the current thread is interrupted waiting for space to write data. This case is not currently handled correctly.

if this writer is closed or not connected, if the target reader is closed or if the thread reading from the target reader is no longer alive. This case is currently not handled correctly.

if buffer is null.

Remarks

Writes len characters from the specified character array starting at offset off to this piped output stream. This method blocks until all the characters are written to the output stream. If a thread was reading data characters from the connected piped input stream, but the thread is no longer alive, then an IOException is thrown.

Java documentation for java.io.PipedWriter.write(char[], int, int).

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