S - Type to be serializedD - Type exposed by deserializationpublic abstract class AbstractSerialization<S extends D,D> extends Object implements Deserializer<D>, Serializer<S>
Deserializer conform serialization delegating serialization/deserialization to custom implementations.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSerialization(Class<D> cl)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
Class<D> |
getDeserializedType()
Type to be deserialized.
|
void |
write(S obj,
ObjectOutputStream oos,
SubProgressObserver po)
Write
Deserializer conform representation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserializeserializeprotected AbstractSerialization(Class<D> cl)
cl - Class to expose as getDeserializedType()public Class<D> getDeserializedType()
DeserializergetDeserializedType in interface Deserializer<D>public void write(S obj, ObjectOutputStream oos, SubProgressObserver po) throws IOException
Deserializer conform representation.obj - Object to be serialized by the delegated Serializeroos - Stream to write topo - Observer to track progressIOException - propagated