T - Deserialized typepublic interface Deserializer<T> extends Serializable
ObjectInputStream.
The underlying implementation might use custom protocol. Typical use case:
Deserializer is followed by the content to be deserializedObjectInputStream.readObject() to get the deserializerObjectInputStream reference to method
deserialize(java.io.ObjectInputStream, com.chemaxon.calculations.common.SubProgressObserver) of the acquired
Deserializer to do the deserialization.| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(ObjectInputStream ois,
SubProgressObserver po)
Deserialize.
|
Class<T> |
getDeserializedType()
Type to be deserialized.
|
Class<T> getDeserializedType()
T deserialize(ObjectInputStream ois, SubProgressObserver po) throws IOException, ClassNotFoundException
ois - Stream to read from. Will not be closed upon finishing.po - Progess observer to track progress. Possibly will be swithced to determinate using
ProgressObserver.switchToDeterminate(long). Method ProgressObserver.done() will be called
upon finishing.IOException - when deserialization failedClassNotFoundException