Udostępnij za pośrednictwem


IEofSensorWatcher.StreamAbort(Stream) Method

Definition

Indicates that the EofSensorInputStream is aborted.

[Android.Runtime.Register("streamAbort", "(Ljava/io/InputStream;)Z", "GetStreamAbort_Ljava_io_InputStream_Handler:Org.Apache.Http.Conn.IEofSensorWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool StreamAbort (System.IO.Stream? wrapped);
[<Android.Runtime.Register("streamAbort", "(Ljava/io/InputStream;)Z", "GetStreamAbort_Ljava_io_InputStream_Handler:Org.Apache.Http.Conn.IEofSensorWatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member StreamAbort : System.IO.Stream -> bool

Parameters

wrapped
Stream

the underlying stream which has not reached EOF

Returns

Attributes

Exceptions

in case of an IO problem, for example if the watcher itself closes the underlying stream. The caller will leave the wrapped stream alone, as if false was returned.

Remarks

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