The ObjectOutput interface extends the DataOutput interface and supports object serialization. It defines the methods shown in the following table:
void close( )
Closes the invoking stream.
void flush( )
Flushes the output buffers.
void write(byte buffer[ ])
Writes an array of bytes to the invoking stream.
void write(byte buffer[ ], int offset, int numBytes)
Writes a subrange of numBytes bytes from the array buffer, beginning at buffer[offset].
void write(int b)
Writes a single byte to the invoking stream. The byte written is the low-order byte of b.
void writeObject(Object obj)
Writes object obj to the invoking stream.