Java.IO.PipedWriter.Write Method
Writes count characters from the character array buffer starting at offset index to this writer.

Syntax

[Android.Runtime.Register("write", "([CII)V", "GetWrite_arrayCIIHandler")]
public override void Write (char[] buffer, int offset, int count)

Parameters

buffer
the buffer to write.
offset
the index of the first character in buffer to write.
count
the number of characters from buffer to write to this writer.

Exceptions

TypeReason
Java.Lang.IndexOutOfBoundsExceptionif offset or count , or if offset + count is bigger than the length of buffer.
Java.IO.InterruptedIOExceptionif the pipe is full and the current thread is interrupted waiting for space to write data. This case is not currently handled correctly.
Java.IO.IOExceptionif 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.
Java.Lang.NullPointerExceptionif buffer is null.

Remarks

Writes count characters from the character array buffer starting at offset index to this writer. The written data can then be read from the connected Java.IO.PipedReader instance.

Separate threads should be used to write to a PipedWriter and to read from the connected PipedReader. If the same thread is used, a deadlock may occur.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1