de.enough.polish.io
Interface Externalizable

All Superinterfaces:
Serializable
All Known Implementing Classes:
ArrayList, IntList, IntStack, Properties, Style, TableData

public interface Externalizable
extends Serializable

Defines methods for serializing and de-serializing classes.

Note that classes implementing the Externalizable interface are required to provide a default constructor without any parameters. This is turn means that no final instance fields are allowed.

Copyright Enough Software 2006 - 2008

 history
        13-Mar-2006 - rob creation
 

Author:
Robert Virkus, j2mepolish@enough.de
See Also:
Storage, RmsStorage

Method Summary
 void read(java.io.DataInputStream in)
          Restores the internal instance fields from the given input stream.
 void write(java.io.DataOutputStream out)
          Stores the internal instance fields to the output stream.
 

Method Detail

write

void write(java.io.DataOutputStream out)
           throws java.io.IOException
Stores the internal instance fields to the output stream.

Parameters:
out - the output stream to which instance fields should be written
Throws:
java.io.IOException - when writing fails

read

void read(java.io.DataInputStream in)
          throws java.io.IOException
Restores the internal instance fields from the given input stream.

Parameters:
in - the input stream from which the data is loaded
Throws:
java.io.IOException - when reading fails