java.io.ObjectOutputStream (JDK 1.1)
The ObjectOutputStream is used to serialize objects, arrays, and other values to a stream. The writeObject() method serializes an object or array, and various other methods are used to write primitive data values to the stream. Note that only objects that implement the Serializable interface or the Externalizable interface can be serialized.
The defaultWriteObject() may only be called from the writeObject() method of a Serializable object. It allows an object to perform additional processing before or after serializing itself.
The remaining methods of ObjectOutputStream are miscellaneous stream manipulation methods and protected methods for use by subclasses that want to customize its serialization behavior.
public classObjectOutputStreamextends OutputStream implements ObjectOutput { //Public ConstructorpublicObjectOutputStream(OutputStreamout) throws IOException; //Public Instance Methodspublic voidclose() throws IOException; //Overrides OutputStreampublic final voiddefaultWriteObject() throws IOException; public voidflush() throws IOException; //Overrides OutputStreampublic voidreset() throws IOException; public voidwrite(intdata) throws IOException; //Defines OutputStreampublic voidwrite(byte[]b) throws IOException; //Overrides OutputStreampublic voidwrite(byte[]b, intoff, intlen) throws IOException; //Overrides OutputStreampublic voidwriteBoolean(booleandata) throws IOException; //From DataOutputpublic voidwriteByte(intdata) throws IOException; //From DataOutputpublic voidwriteBytes(Stringdata) throws IOException; //From DataOutputpublic voidwriteChar(intdata) throws IOException; //From DataOutputpublic voidwriteChars(Stringdata) throws IOException; //From DataOutputpublic voidwriteDouble(doubledata) throws IOException; //From DataOutputpublic voidwriteFloat(floatdata) throws IOException; //From DataOutputpublic voidwriteInt(intdata) throws IOException; //From DataOutputpublic voidwriteLong(longdata) throws IOException; //From DataOutputpublic final voidwriteObject(Objectobj) throws IOException; //From ObjectOutputpublic voidwriteShort(intdata) throws IOException; //From DataOutputpublic voidwriteUTF(Stringdata) throws IOException; //From DataOutput//Protected Instance Methodsprotected voidannotateClass(Classcl) throws IOException; protected voiddrain() throws IOException; protected final booleanenableReplaceObject(booleanenable) throws SecurityException; protected ObjectreplaceObject(Objectobj) throws IOException; protected voidwriteStreamHeader() throws IOException; }
Hierarchy:
Object->OutputStream->ObjectOutputStream(ObjectOutput(DataOutput))
Passed To:
AWTEventMulticaster.save(), AWTEventMulticaster.saveInternal()