@NotStorableClass public abstract class AbstractObjectOutputSerialize extends AbstractObjectOutput
classInfoFactory, helperBinaryConversion, helperReflect, logger, NO_SOONS, objectIOManager, proxyManager2
Constructor and Description |
---|
AbstractObjectOutputSerialize(IObjectIOManagerForObjectIO objectIOManager,
ClassInfoFactory classInfoFactory,
IProxyManagerForObjectIO proxyManager2,
HelperBinaryConversion helperBinaryConversion) |
Modifier and Type | Method and Description |
---|---|
boolean |
isValueChanged(ObjectAndPersistInfo objectAndPersistInfo)
to know if object state change according to its original value
also compute reference change list |
int |
numberOfByteForData(ObjectAndPersistInfo objectAndPersistInfo)
obtains the number of bytes need to store object state
|
void |
prepareWrite(ObjectAndPersistInfo objectAndPersistInfo)
prepare possible write of object
|
protected abstract byte[] |
serialize(ObjectAndItsClassInfo object)
serialize object
|
void |
setReferenceChangeListForNewObject(ObjectAndPersistInfo objectAndItsClassInfo)
compute reference change list for new object
|
ObjectClassInfoAndDeclared[] |
willNotBeWroteImpl(ObjectAndPersistInfo objectAndPersistInfo) |
protected ObjectClassInfoAndDeclared[] |
writeBodyAndItsHeader(byte[] binary,
int bodyBeginOffset,
ObjectAndPersistInfo objectAndPersistInfo,
boolean updateOriginalValue) |
byteSize, byteSizeForFieldOrElement, computeReferenceChangeList, currentValuesToReferencedSoon, getObjectIOManager, isGenericValueChanged, setGarbageManagement, setReferenceChangeListForGeneric, willNotBeWrote, writeBody, writeCurrentValue, writeSignature, writeStaticFieldSignature
public AbstractObjectOutputSerialize(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public void prepareWrite(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIOTooBigForSerializationException
IObjectOutput
objectAndPersistInfo
- the objectObjectIOException
ObjectIOInvalidClassException
ObjectIONotSerializableException
ObjectIOTooBigForSerializationException
protected abstract byte[] serialize(ObjectAndItsClassInfo object) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIOTooBigForSerializationException
object
- the object to serializeObjectIOException
ObjectIOException
ObjectIOInvalidClassException
ObjectIONotSerializableException
ObjectIOTooBigForSerializationException
public int numberOfByteForData(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException
AbstractObjectOutput
numberOfByteForData
in class AbstractObjectOutput
objectAndPersistInfo
- the objectObjectIOException
ObjectIOInvalidClassException
ObjectIONotSerializableException
protected final ObjectClassInfoAndDeclared[] writeBodyAndItsHeader(byte[] binary, int bodyBeginOffset, ObjectAndPersistInfo objectAndPersistInfo, boolean updateOriginalValue) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException
writeBodyAndItsHeader
in class AbstractObjectOutput
binary
- binary data of data record associated to objectbodyBeginOffset
- offset in binary data of begin of bodyobjectAndPersistInfo
- the object which for state is to writeupdateOriginalValue
- true if set original value to current value ( true only when
serialization is done to update heap file )ObjectIOException
ObjectIOInvalidClassException
ObjectIONotSerializableException
public ObjectClassInfoAndDeclared[] willNotBeWroteImpl(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException
willNotBeWroteImpl
in class AbstractObjectOutput
ObjectIOException
public boolean isValueChanged(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException, ObjectIODataCorruptedException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException
IObjectOutput
objectAndPersistInfo
- the object to testObjectIOException
ObjectIODataCorruptedException
ObjectIODataRecordNotFoundException
ObjectIOClassNotFoundException
public void setReferenceChangeListForNewObject(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
IObjectOutput
ObjectIOException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.