Next: RMI
Up: Java Notes
Previous: Threads Example 8.2: Max
-
ObjectOutputStream
in java.io
package
-
ObjectInputStream
in java.io
package
- Serialise: complete state of object written to an output stream
- Serialise: Pass object to
writeObject()
method of ObjectOutputStream
- De-serialise: Recover the complete object by reading its serialised state from an input stream
- De-serialise: Call
readObject()
method of ObjectInputStream
- Remote Method Invocation uses Object Serialisation
for transferring objects between different Virtual Machines
- Serialisable interface does not define any methods; just a marker to indicate whether serialisation on an object is allowed or not.
- Fields of a class declared transient are not serialised
- Custom serialisation on objects requires implementation of special readObject() and writeObject() methods.
Ananda Amatya
9/15/1999