Serialization:
ObjectOutputStream/ObjectInputStream.