IObjectInput 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.
ObjectInput extends the DataInput interface to include the reading of objects.
[Android.Runtime.Register("java/io/ObjectInput", "", "Java.IO.IObjectInputInvoker")]
public interface IObjectInput : IDisposable, Java.Interop.IJavaPeerable, Java.IO.IDataInput
[<Android.Runtime.Register("java/io/ObjectInput", "", "Java.IO.IObjectInputInvoker")>]
type IObjectInput = interface
interface IDataInput
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
ObjectInput extends the DataInput interface to include the reading of objects. DataInput includes methods for the input of primitive types, ObjectInput extends that interface to include objects, arrays, and Strings.
Added in 1.1.
Java documentation for java.io.ObjectInput.
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 |
Gets an implementation-specific JNI reference control-block pointer. (Inherited from IJavaPeerable) |
| JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
| PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Methods
| Name | Description |
|---|---|
| Available() |
Returns the number of bytes that can be read without blocking. |
| Close() |
Closes the input stream. |
| 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) |
| Read() |
Reads a byte of data. |
| Read(Byte[], Int32, Int32) |
Reads into an array of bytes. |
| Read(Byte[]) |
Reads into an array of bytes. |
| ReadBoolean() |
Reads one input byte and returns
|
| ReadByte() |
Reads and returns one input byte. (Inherited from IDataInput) |
| ReadChar() |
Reads two input bytes and returns a |
| ReadDouble() |
Reads eight input bytes and returns
a |
| ReadFloat() |
Reads four input bytes and returns
a |
| ReadFully(Byte[], Int32, Int32) |
Reads |
| ReadFully(Byte[]) |
Reads some bytes from an input
stream and stores them into the buffer
array |
| ReadInt() |
Reads four input bytes and returns an
|
| ReadLine() |
Reads the next line of text from the input stream. (Inherited from IDataInput) |
| ReadLong() |
Reads eight input bytes and returns
a |
| ReadObject() |
Read and return an object. |
| ReadShort() |
Reads two input bytes and returns
a |
| ReadUnsignedByte() |
Reads one input byte, zero-extends
it to type |
| ReadUnsignedShort() |
Reads two input bytes and returns
an |
| ReadUTF() |
Reads in a string that has been encoded using a modified UTF-8 format. (Inherited from IDataInput) |
| SetJniIdentityHashCode(Int32) |
Set the value returned by |
| SetJniManagedPeerState(JniManagedPeerStates) |
Sets the state flags returned by |
| SetPeerReference(JniObjectReference) |
Set the value returned by |
| Skip(Int64) |
Skips n bytes of input. |
| SkipBytes(Int32) |
Makes an attempt to skip over
|
| 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) |
Reuses a compatible managed peer or obtains a wrapper of the requested type. |
| ReadAsync(IObjectInput, Byte[], Int32, Int32) |
Reads input bytes into a buffer range in a task. |
| ReadAsync(IObjectInput, Byte[]) |
Reads input bytes into a buffer in a task. |
| ReadAsync(IObjectInput) |
Reads one input byte in a task. |
| ReadBooleanAsync(IDataInput) |
Reads a Boolean value in a task. |
| ReadByteAsync(IDataInput) |
Reads a signed byte in a task. |
| ReadCharAsync(IDataInput) |
Reads a 16-bit character in a task. |
| ReadDoubleAsync(IDataInput) |
Reads a double-precision value in a task. |
| ReadFloatAsync(IDataInput) |
Reads a single-precision value in a task. |
| ReadFullyAsync(IDataInput, Byte[], Int32, Int32) |
Fills a buffer range from the input in a task. |
| ReadFullyAsync(IDataInput, Byte[]) |
Fills the byte array from the input in a task. |
| ReadIntAsync(IDataInput) |
Reads a signed 32-bit integer in a task. |
| ReadLineAsync(IDataInput) |
Reads a byte-based text line in a task. |
| ReadLongAsync(IDataInput) |
Reads a signed 64-bit integer in a task. |
| ReadObjectAsync(IObjectInput) |
Runs ReadObject() in a task. |
| ReadShortAsync(IDataInput) |
Reads a signed 16-bit integer in a task. |
| ReadUnsignedByteAsync(IDataInput) |
Reads an unsigned byte in a task. |
| ReadUnsignedShortAsync(IDataInput) |
Reads an unsigned 16-bit integer in a task. |
| ReadUTFAsync(IDataInput) |
Reads length-prefixed modified UTF-8 text in a task. |
| SkipAsync(IObjectInput, Int64) |
Skips input bytes in a task. |
| SkipBytesAsync(IDataInput, Int32) |
Skips input bytes in a task. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |