This interface extends the DataOutput interface and adds methods for serializing objects and writing bytes and arrays of bytes.
public abstract interface ObjectOutput extends DataOutput { // Public Instance Methods public abstract void close() throws IOException; public abstract void flush() throws IOException; public abstract void write(int b) throws IOException; // From DataOutput public abstract void write(byte[] b) throws IOException; // From DataOutput public abstract void write(byte[] b, int off, int len) throws IOException; // From DataOutput public abstract void writeObject(Object obj) throws IOException; }
ObjectOutputStream
Externalizable.writeExternal()