|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.serialver4j.hessian.AbstractVersioningHessianSerializer
public abstract class AbstractVersioningHessianSerializer
Serializes and deserializes a given object using hessian or burlap.
| Constructor Summary | |
|---|---|
AbstractVersioningHessianSerializer(ClassesHistory history,
int pushbackBufSize,
com.caucho.hessian.io.SerializerFactory serializerFactory)
Constructor with history. |
|
| Method Summary | |
|---|---|
int |
getPushbackBufSize()
Returns the size of the push back buffer. |
String |
getVersionTag()
Returns the version tag from the history. |
protected Object |
readObject(com.caucho.hessian.io.AbstractHessianInput input,
long version,
String type)
Reads an object of the given type from the input converting it to the current version. |
protected void |
serialize(com.caucho.hessian.io.AbstractHessianOutput output,
Object obj)
Serializes the object using the given hessian output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.fuin.serialver4j.base.VersioningSerializer |
|---|
deserialize, serialize |
| Constructor Detail |
|---|
public AbstractVersioningHessianSerializer(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 |
|---|
protected final void serialize(com.caucho.hessian.io.AbstractHessianOutput output,
Object obj)
throws IOException
output - Output to use.obj - Object to write to the output.
IOException - Error writing to the output.
protected final Object readObject(com.caucho.hessian.io.AbstractHessianInput input,
long version,
String type)
throws IOException
input - Input to use.version - Version of the object on the input.type - Type of the object on the input.
IOException - Error reading from the input.public final int getPushbackBufSize()
public final String getVersionTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||