FileDocCategorySizeDatePackage
ObjectOutput.javaAPI DocAndroid 1.5 API3582Wed May 06 22:41:04 BST 2009java.io

ObjectOutput

public interface ObjectOutput implements DataOutput
Defines an interface for classes that allow reading serialized objects.
see
ObjectOutputStream
see
ObjectInput
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public voidclose()
Closes the target stream. Implementations of this method should free any resources used by the stream.

throws
IOException if an error occurs while closing the target stream.
since
Android 1.0

public voidflush()
Flushes the target stream. Implementations of this method should ensure that any pending writes are written out to the target stream.

throws
IOException if an error occurs while flushing the target stream.
since
Android 1.0

public voidwrite(byte[] buffer)
Writes the entire contents of the byte array {@code buffer} to the output stream. Blocks until all bytes are written.

param
buffer the buffer to write.
throws
IOException if an error occurs while writing to the target stream.
since
Android 1.0

public voidwrite(byte[] buffer, int offset, int count)
Writes {@code count} bytes from the byte array {@code buffer} starting at position {@code offset} to the target stream. Blocks until all bytes are written.

param
buffer the buffer to write.
param
offset the index of the first byte in {@code buffer} to write.
param
count the number of bytes from {@code buffer} to write to the target stream.
throws
IOException if an error occurs while writing to the target stream.
since
Android 1.0

public voidwrite(int value)
Writes a single byte to the target stream. Only the least significant byte of the integer {@code value} is written to the stream. Blocks until the byte is actually written.

param
value the byte to write.
throws
IOException if an error occurs while writing to the target stream.
since
Android 1.0

public voidwriteObject(java.lang.Object obj)
Writes the specified object {@code obj} to the target stream.

param
obj the object to write.
throws
IOException if an error occurs while writing to the target stream.
since
Android 1.0