|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VersioningSerializer
Serializes or deserializes a given object. Old serialized versions of the objects are converted into their current representation when deserializing the objects.
| Method Summary | |
|---|---|
Object |
deserialize(InputStream in)
Reads an object from the stream and converts old versions of the object into the current representation. |
void |
serialize(OutputStream out,
Object obj)
Writes the object to the stream. |
| Method Detail |
|---|
void serialize(OutputStream out,
Object obj)
throws IOException
out - Stream to write to.obj - Object to serialize.
IOException - Error writing to the stream.
Object deserialize(InputStream in)
throws IOException,
DeserializationException
in - Stream to read.
IOException - Error reading the stream or the stream contains a wrong
format.
DeserializationException - Error deserializing the input to an object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||