Java.IO.PipedOutputStream.Write Method
Writes a single byte to this stream.

Syntax

[Android.Runtime.Register("write", "(I)V", "GetWrite_IHandler")]
public override void Write (int oneByte)

Parameters

oneByte
the byte to write.

Exceptions

TypeReason
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 stream is not connected, if the target stream is closed or if the thread reading from the target stream is no longer alive. This case is currently not handled correctly.

Remarks

Writes a single byte to this stream. Only the least significant byte of the integer oneByte is written. The written byte can then be read from the connected input stream.

Separate threads should be used to write to a PipedOutputStream and to read from the connected Java.IO.PipedInputStream. 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