IObjectInput Interface

Definition

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

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(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

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 Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Read()

Reads a byte of data.

Read(Byte[])

Reads into an array of bytes.

Read(Byte[], Int32, Int32)

Reads into an array of bytes.

ReadBoolean()

Reads one input byte and returns true if that byte is nonzero, false if that byte is zero.

(Inherited from IDataInput)
ReadByte()

Reads and returns one input byte.

(Inherited from IDataInput)
ReadChar()

Reads two input bytes and returns a char value.

(Inherited from IDataInput)
ReadDouble()

Reads eight input bytes and returns a double value.

(Inherited from IDataInput)
ReadFloat()

Reads four input bytes and returns a float value.

(Inherited from IDataInput)
ReadFully(Byte[])

Reads some bytes from an input stream and stores them into the buffer array b.

(Inherited from IDataInput)
ReadFully(Byte[], Int32, Int32)

Reads len bytes from an input stream.

(Inherited from IDataInput)
ReadInt()

Reads four input bytes and returns an int value.

(Inherited from IDataInput)
ReadLine()

Reads the next line of text from the input stream.

(Inherited from IDataInput)
ReadLong()

Reads eight input bytes and returns a long value.

(Inherited from IDataInput)
ReadObject()

Read and return an object.

ReadShort()

Reads two input bytes and returns a short value.

(Inherited from IDataInput)
ReadUnsignedByte()

Reads one input byte, zero-extends it to type int, and returns the result, which is therefore in the range 0 through 255.

(Inherited from IDataInput)
ReadUnsignedShort()

Reads two input bytes and returns an int value in the range 0 through 65535.

(Inherited from IDataInput)
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 JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
Skip(Int64)

Skips n bytes of input.

SkipBytes(Int32)

Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes.

(Inherited from IDataInput)
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

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)
ReadBooleanAsync(IDataInput)
ReadByteAsync(IDataInput)
ReadCharAsync(IDataInput)
ReadDoubleAsync(IDataInput)
ReadFloatAsync(IDataInput)
ReadFullyAsync(IDataInput, Byte[])
ReadFullyAsync(IDataInput, Byte[], Int32, Int32)
ReadIntAsync(IDataInput)
ReadLineAsync(IDataInput)
ReadLongAsync(IDataInput)
ReadShortAsync(IDataInput)
ReadUnsignedByteAsync(IDataInput)
ReadUnsignedShortAsync(IDataInput)
ReadUTFAsync(IDataInput)
SkipBytesAsync(IDataInput, Int32)
ReadAsync(IObjectInput)
ReadAsync(IObjectInput, Byte[])
ReadAsync(IObjectInput, Byte[], Int32, Int32)
ReadObjectAsync(IObjectInput)
SkipAsync(IObjectInput, Int64)

Applies to