IDataOutput 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.
The DataOutput
interface provides
for converting data from any of the Java
primitive types to a series of bytes and
writing these bytes to a binary stream.
[Android.Runtime.Register("java/io/DataOutput", "", "Java.IO.IDataOutputInvoker")]
public interface IDataOutput : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/io/DataOutput", "", "Java.IO.IDataOutputInvoker")>]
type IDataOutput = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
The DataOutput
interface provides for converting data from any of the Java primitive types to a series of bytes and writing these bytes to a binary stream. There is also a facility for converting a String
into modified UTF-8 format and writing the resulting series of bytes.
For all the methods in this interface that write bytes, it is generally true that if a byte cannot be written for any reason, an IOException
is thrown.
Added in 1.0.
Java documentation for java.io.DataOutput
.
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 |
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
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) |
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) |
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. |
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 |
WriteShort(Int32) |
Writes two bytes to the output stream to represent the value of the argument. |
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 |