public final class MasterMoleculeStorageSerialization extends AbstractSerialization<MasterMoleculeStorageImpl,MasterMoleculeStorage>
MasterMoleculeStorage
instances.Modifier and Type | Method and Description |
---|---|
MasterMoleculeStorage |
deserialize(ObjectInputStream ois,
SubProgressObserver po)
Deserialize.
|
void |
serialize(MasterMoleculeStorageImpl obj,
ObjectOutputStream oos,
SubProgressObserver po)
Create custom serialization.
|
static void |
writeMms(MasterMoleculeStorageImpl mms,
ObjectOutputStream oos,
SubProgressObserver po)
Write
Deserializer conform representation. |
getDeserializedType, write
public MasterMoleculeStorage deserialize(ObjectInputStream ois, SubProgressObserver po) throws IOException, ClassNotFoundException
Deserializer
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
public void serialize(MasterMoleculeStorageImpl obj, ObjectOutputStream oos, SubProgressObserver po) throws IOException
Serializer
obj
- Object to writeoos
- Object output stream to write topo
- Progress observer to track progressIOException
public static void writeMms(MasterMoleculeStorageImpl mms, ObjectOutputStream oos, SubProgressObserver po) throws IOException
Deserializer
conform representation.mms
- Object to be serialized by the delegated Serializer
oos
- Stream to write topo
- Observer to track progressIOException
- propagated