다음을 통해 공유


IObjectOutput Interface

Definition

ObjectOutput extends the DataOutput interface to include writing of objects.

[Android.Runtime.Register("java/io/ObjectOutput", "", "Java.IO.IObjectOutputInvoker")]
public interface IObjectOutput : IDisposable, Java.Interop.IJavaPeerable, Java.IO.IDataOutput
[<Android.Runtime.Register("java/io/ObjectOutput", "", "Java.IO.IObjectOutputInvoker")>]
type IObjectOutput = interface
    interface IDataOutput
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Derived
Attributes
Implements

Remarks

ObjectOutput extends the DataOutput interface to include writing of objects. DataOutput includes methods for output of primitive types, ObjectOutput extends that interface to include objects, arrays, and Strings.

Added in 1.1.

Java documentation for java.io.ObjectOutput.

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

Close()

Closes the 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)
Flush()

Flushes the stream.

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)
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)
Write(Byte[], Int32, Int32)

Writes len bytes from array b, in order, to the output stream.

(Inherited from IDataOutput)
Write(Byte[])

Writes to the output stream all the bytes in array b.

(Inherited from IDataOutput)
Write(Int32)

Writes to the output stream the eight low-order bits of the argument b.

(Inherited from IDataOutput)
WriteBoolean(Boolean)

Writes a boolean value to this output stream.

(Inherited from IDataOutput)
WriteByte(Int32)

Writes to the output stream the eight low- order bits of the argument v.

(Inherited from IDataOutput)
WriteBytes(String)

Writes a string to the output stream.

(Inherited from IDataOutput)
WriteChar(Int32)

Writes a char value, which is comprised of two bytes, to the output stream.

(Inherited from IDataOutput)
WriteChars(String)

Writes every character in the string s, to the output stream, in order, two bytes per character.

(Inherited from IDataOutput)
WriteDouble(Double)

Writes a double value, which is comprised of eight bytes, to the output stream.

(Inherited from IDataOutput)
WriteFloat(Single)

Writes a float value, which is comprised of four bytes, to the output stream.

(Inherited from IDataOutput)
WriteInt(Int32)

Writes an int value, which is comprised of four bytes, to the output stream.

(Inherited from IDataOutput)
WriteLong(Int64)

Writes a long value, which is comprised of eight bytes, to the output stream.

(Inherited from IDataOutput)
WriteObject(Object)

Write an object to the underlying storage or stream.

WriteShort(Int32)

Writes two bytes to the output stream to represent the value of the argument.

(Inherited from IDataOutput)
WriteUTF(String)

Writes two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the string s.

(Inherited from IDataOutput)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)
WriteAsync(IDataOutput, Byte[], Int32, Int32)
WriteAsync(IDataOutput, Byte[])
WriteAsync(IDataOutput, Int32)
WriteBooleanAsync(IDataOutput, Boolean)
WriteByteAsync(IDataOutput, Int32)
WriteBytesAsync(IDataOutput, String)
WriteCharAsync(IDataOutput, Int32)
WriteCharsAsync(IDataOutput, String)
WriteDoubleAsync(IDataOutput, Double)
WriteFloatAsync(IDataOutput, Single)
WriteIntAsync(IDataOutput, Int32)
WriteLongAsync(IDataOutput, Int64)
WriteShortAsync(IDataOutput, Int32)
WriteUTFAsync(IDataOutput, String)
FlushAsync(IObjectOutput)
WriteObjectAsync(IObjectOutput, Object)

Applies to