Org.Apache.Http.Conn.EofSensorInputStream.CheckEOF Method
Detects EOF and notifies the watcher.

Syntax

[Android.Runtime.Register("checkEOF", "(I)V", "GetCheckEOF_IHandler")]
protected virtual void CheckEOF (int eof)

Parameters

eof
the result of the calling read operation. A negative value indicates that EOF is reached.

Exceptions

TypeReason
Java.IO.IOExceptionin case of an IO problem on closing the underlying stream

Remarks

Detects EOF and notifies the watcher. This method should only be called while the underlying stream is still accessible. Use EofSensorInputStream.IsReadAllowed to check that condition.

If EOF is detected, the watcher will be notified and this stream is detached from the underlying stream. This prevents multiple notifications from this stream.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http.Conn
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1