|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.serialver4j.base.VersioningJavaSerializer
public final class VersioningJavaSerializer
Serializes a given object using a ObjectOutputStream and deserializes
and Object using a VersioningObjectInputStream.
| Constructor Summary | |
|---|---|
VersioningJavaSerializer(ClassesHistory history)
Constructor with history. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersioningJavaSerializer(ClassesHistory history)
history - History to use.| Method Detail |
|---|
public final Object deserialize(InputStream in)
throws IOException,
DeserializationException
VersioningSerializer
deserialize in interface VersioningSerializerin - Stream to read.
IOException - Error reading the stream or the stream contains a wrong
format.
DeserializationException - Error deserializing the input to an object.
public final void serialize(OutputStream out,
Object obj)
throws IOException
VersioningSerializer
serialize in interface VersioningSerializerout - Stream to write to.obj - Object to serialize.
IOException - Error writing to the stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||