| java.io.ObjectOutput
All known Subclasses: java.io.ObjectOutputStream,
ObjectOutput | public interface ObjectOutput extends DataOutput(Code) | | 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.
author: unascribed version: 1.13, 02/02/00 See Also: java.io.InputStream See Also: java.io.ObjectOutputStream See Also: java.io.ObjectInputStream since: JDK1.1 |
Method Summary | |
public void | close() Closes the stream. | public void | flush() Flushes the stream. | public void | write(int b) Writes a byte. | public void | write(byte b) Writes an array of bytes. | public void | write(byte b, int off, int len) Writes a sub array of bytes. | public void | writeObject(Object obj) Write an object to the underlying storage or stream. |
close | public void close() throws IOException(Code) | | Closes the stream. This method must be called
to release any resources associated with the
stream.
exception: IOException - If an I/O error has occurred. |
flush | public void flush() throws IOException(Code) | | Flushes the stream. This will write any buffered
output bytes.
exception: IOException - If an I/O error has occurred. |
write | public void write(int b) throws IOException(Code) | | Writes a byte. This method will block until the byte is actually
written.
Parameters: b - the byte exception: IOException - If an I/O error has occurred. |
write | public void write(byte b) throws IOException(Code) | | Writes an array of bytes. This method will block until the bytes
are actually written.
Parameters: b - the data to be written exception: IOException - If an I/O error has occurred. |
write | public void write(byte b, int off, int len) throws IOException(Code) | | Writes a sub array of bytes.
Parameters: b - the data to be written Parameters: off - the start offset in the data Parameters: len - the number of bytes that are written exception: IOException - If an I/O error has occurred. |
writeObject | public void writeObject(Object obj) throws IOException(Code) | | Write an object to the underlying storage or stream. The
class that implements this interface defines how the object is
written.
Parameters: obj - the object to be written exception: IOException - Any of the usual Input/Output related exceptions. |
|
|