T
- Type of deserialized object (see Deserializer.getDeserializedType()
)public interface IndirectSerializable<T>
Deserializer
API conform way.
Method #writeIndirectedTo(java.io.ObjectOutputStream, com.chemaxon.calculations.common.SubProgressObserver)
writes a Deserializer
instance capable of reading the rest of the stream to restore the object.
Note that usually output of method serialize()
is expected to be possible to read by method
deserialize()
.
Type of the deserialized object (see Deserializer.getDeserializedType()
) must match to the type
implementing/extending this interface.
Modifier and Type | Method and Description |
---|---|
void |
writeIndirected(ObjectOutputStream oos,
SubProgressObserver po)
Write
Deserializer conform representation. |
void writeIndirected(ObjectOutputStream oos, SubProgressObserver po) throws IOException
Deserializer
conform representation.
First a Deserializer
instance is written to the stream using
ObjectOutputStream.writeObject(java.lang.Object)
. This instance is capable of deserializing the content
written next.oos
- Stream to write topo
- Observer to track progress; will be closed upon finishingIOException
- delegated from underlying ObjectOutputStream
accesses