|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.serialver4j.hessian.AbstractVersioningHessianSerializer
org.fuin.serialver4j.hessian.VersioningHessian2Serializer
public final class VersioningHessian2Serializer
Serializes and deserializes a given object using Hessian2. The serial version UID of the object and it's type will be added to the stream before serializing the object itself.
| Constructor Summary | |
|---|---|
VersioningHessian2Serializer(ClassesHistory history)
Constructor with history. |
|
VersioningHessian2Serializer(ClassesHistory history,
int pushbackBufSize,
com.caucho.hessian.io.SerializerFactory serializerFactory)
Constructor with history. |
|
VersioningHessian2Serializer(ClassesHistory history,
com.caucho.hessian.io.SerializerFactory serializerFactory)
Constructor with history and serializer factory. |
|
| 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 org.fuin.serialver4j.hessian.AbstractVersioningHessianSerializer |
|---|
getPushbackBufSize, getVersionTag, readObject, serialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersioningHessian2Serializer(ClassesHistory history)
SerializerFactory.
history - History to use.
public VersioningHessian2Serializer(ClassesHistory history,
com.caucho.hessian.io.SerializerFactory serializerFactory)
history - History to use.serializerFactory - Serializer factory to use.
public VersioningHessian2Serializer(ClassesHistory history,
int pushbackBufSize,
com.caucho.hessian.io.SerializerFactory serializerFactory)
history - History to use.pushbackBufSize - Size of the push back buffer.serializerFactory - Serializer factory to use.| Method Detail |
|---|
public final Object deserialize(InputStream in)
throws IOException,
DeserializationException
VersioningSerializer
in - 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
out - 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 | |||||||||