Java in a Nutshell

Previous Chapter 24
The java.io Package
Next
 

24.41 java.io.ObjectOutput (JDK 1.1)

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;
}

Implemented By:

ObjectOutputStream

Passed To:

Externalizable.writeExternal()


Previous Home Next
java.io.ObjectInputValidation (JDK 1.1) Book Index java.io.ObjectOutputStream (JDK 1.1)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.