public final class SerializationManagerImpl extends SerializationManagerEx implements Disposable
Disposable.Parent
Constructor and Description |
---|
SerializationManagerImpl() |
SerializationManagerImpl(java.nio.file.Path nameStorageFile,
boolean unmodifiable) |
Modifier and Type | Method and Description |
---|---|
Stub |
deserialize(java.io.InputStream stream) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
flushNameStorage() |
protected void |
initSerializers() |
java.lang.String |
internString(java.lang.String string) |
boolean |
isNameStorageCorrupted() |
protected void |
registerSerializer(java.lang.String externalId,
Computable<ObjectStubSerializer> lazySerializer)
Use
StubElementTypeHolderEP to register stub serializer instead of manual registration. |
void |
reinitializeNameStorage() |
void |
repairNameStorage() |
void |
reSerialize(java.io.InputStream inStub,
java.io.OutputStream outStub,
SerializationManagerEx newSerializationManager) |
void |
serialize(Stub rootStub,
java.io.OutputStream stream) |
getInstanceEx
getInstance, registerSerializer
public SerializationManagerImpl()
public SerializationManagerImpl(java.nio.file.Path nameStorageFile, boolean unmodifiable)
public boolean isNameStorageCorrupted()
isNameStorageCorrupted
in class SerializationManagerEx
public void repairNameStorage()
repairNameStorage
in class SerializationManagerEx
public void flushNameStorage()
flushNameStorage
in class SerializationManagerEx
public java.lang.String internString(java.lang.String string)
internString
in class SerializationManager
public void reinitializeNameStorage()
reinitializeNameStorage
in class SerializationManagerEx
public void dispose()
Disposable
dispose
in interface Disposable
protected void registerSerializer(java.lang.String externalId, Computable<ObjectStubSerializer> lazySerializer)
SerializationManager
StubElementTypeHolderEP
to register stub serializer instead of manual registration.registerSerializer
in class SerializationManager
public void serialize(Stub rootStub, java.io.OutputStream stream)
serialize
in class SerializationManagerEx
public Stub deserialize(java.io.InputStream stream) throws SerializerNotFoundException
deserialize
in class SerializationManagerEx
SerializerNotFoundException
public void reSerialize(java.io.InputStream inStub, java.io.OutputStream outStub, SerializationManagerEx newSerializationManager) throws java.io.IOException
reSerialize
in class SerializationManagerEx
java.io.IOException
protected void initSerializers()
initSerializers
in class SerializationManagerEx