ISessionInputBuffer Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This class is obsoleted in this android platform
Session input buffer for blocking connections.
[Android.Runtime.Register("org/apache/http/io/SessionInputBuffer", "", "Org.Apache.Http.IO.ISessionInputBufferInvoker")]
[System.Obsolete("This class is obsoleted in this android platform")]
public interface ISessionInputBuffer : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("org/apache/http/io/SessionInputBuffer", "", "Org.Apache.Http.IO.ISessionInputBufferInvoker")>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type ISessionInputBuffer = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
See the Android session input buffer implementation and socket input buffer implementation for read and timeout behavior.
Android platform documentation
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.
Properties
| Name | Description |
|---|---|
| Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
| JniIdentityHashCode |
Returns the value of |
| JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
| JniObjectReferenceControlBlock | (Inherited from IJavaPeerable) |
| JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
| Metrics |
Gets the transport metrics for this input buffer. |
| PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Methods
| Name | Description |
|---|---|
| Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
| DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
| Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
| IsDataAvailable(Int32) |
Checks whether input data is available, waiting if necessary. |
| Read() |
Reads the next byte from the input buffer. |
| Read(Byte[], Int32, Int32) |
Reads bytes into the specified part of an array. |
| Read(Byte[]) |
Reads bytes into an array, starting at its first element. |
| ReadLine() |
Reads the next line from the input buffer. |
| ReadLine(CharArrayBuffer) |
Reads the next line and appends it to a character buffer. |
| SetJniIdentityHashCode(Int32) |
Set the value returned by |
| SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
| SetPeerReference(JniObjectReference) |
Set the value returned by |
| UnregisterFromRuntime() |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| ReadAsync(ISessionInputBuffer, Byte[], Int32, Int32) |
Runs a blocking read into the specified part of a byte array on a thread-pool thread. |
| ReadAsync(ISessionInputBuffer, Byte[]) |
Runs a blocking read into a byte array on a thread-pool thread. |
| ReadAsync(ISessionInputBuffer) |
Runs a blocking single-byte read on a thread-pool thread. |
| ReadLineAsync(ISessionInputBuffer, CharArrayBuffer) |
Runs a blocking line read into a character buffer on a thread-pool thread. |
| ReadLineAsync(ISessionInputBuffer) |
Runs a blocking line read on a thread-pool thread. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |