Java.IO.PipedInputStream.Read Method
Reads a single byte from this stream and returns it as an integer in the range from 0 to 255.

Syntax

[Android.Runtime.Register("read", "()I", "GetReadHandler")]
public override int Read ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif this stream is closed or not connected to an output stream, or if the thread writing to the connected output stream is no longer alive.

Remarks

Reads a single byte from this stream and returns it as an integer in the range from 0 to 255. Returns -1 if the end of this stream has been reached. If there is no data in the pipe, this method blocks until data is available, the end of the stream is detected or an exception is thrown.

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