IObjectOutput 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.
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
| 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 |
|---|---|
| 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 |
| Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
| Flush() |
Flushes the stream. |
| SetJniIdentityHashCode(Int32) |
Set the value returned by |
| SetJniManagedPeerState(JniManagedPeerStates) |
Sets the state flags returned by |
| 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) |
| Write(Byte[], Int32, Int32) |
Writes |
| Write(Byte[]) |
Writes to the output stream all the bytes in array |
| Write(Int32) |
Writes to the output stream the eight
low-order bits of the argument |
| WriteBoolean(Boolean) |
Writes a |
| WriteByte(Int32) |
Writes to the output stream the eight low-
order bits of the argument |
| WriteBytes(String) |
Writes a string to the output stream. (Inherited from IDataOutput) |
| WriteChar(Int32) |
Writes a |
| WriteChars(String) |
Writes every character in the string |
| WriteDouble(Double) |
Writes a |
| WriteFloat(Single) |
Writes a |
| WriteInt(Int32) |
Writes an |
| WriteLong(Int64) |
Writes a |
| 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 |
Extension Methods
| Name | Description |
|---|---|
| FlushAsync(IObjectOutput) |
Runs Flush() in a task. |
| 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. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |
| WriteAsync(IDataOutput, Byte[], Int32, Int32) |
Writes a byte-array range to the output in a task. |
| WriteAsync(IDataOutput, Byte[]) |
Writes the byte array to the output in a task. |
| WriteAsync(IDataOutput, Int32) |
Writes one byte to the output in a task. |
| WriteBooleanAsync(IDataOutput, Boolean) |
Writes a Boolean value as one byte in a task. |
| WriteByteAsync(IDataOutput, Int32) |
Writes an 8-bit value in a task. |
| WriteBytesAsync(IDataOutput, String) |
Writes one byte per string character in a task. |
| WriteCharAsync(IDataOutput, Int32) |
Writes a 16-bit character with the high byte first in a task. |
| WriteCharsAsync(IDataOutput, String) |
Writes two bytes per string character in a task. |
| WriteDoubleAsync(IDataOutput, Double) |
Writes a double-precision value in a task. |
| WriteFloatAsync(IDataOutput, Single) |
Writes a single-precision value in a task. |
| WriteIntAsync(IDataOutput, Int32) |
Writes a 32-bit integer with the high byte first in a task. |
| WriteLongAsync(IDataOutput, Int64) |
Writes a 64-bit integer with the high byte first in a task. |
| WriteObjectAsync(IObjectOutput, Object) |
Writes an object to the output in a task. |
| WriteShortAsync(IDataOutput, Int32) |
Writes a 16-bit integer with the high byte first in a task. |
| WriteUTFAsync(IDataOutput, String) |
Writes length-prefixed modified UTF-8 text in a task. |