@NotStorableClass public class ObjectOutputForBasic extends AbstractObjectOutput
classInfoFactory, helperBinaryConversion, helperReflect, logger, NO_SOONS, objectIOManager, proxyManager2
Constructor and Description |
---|
ObjectOutputForBasic(IObjectIOManagerForObjectIO objectIOManager,
ClassInfoFactory classInfoFactory,
IProxyManagerForObjectIO proxyManager2,
HelperBinaryConversion helperBinaryConversion) |
Modifier and Type | Method and Description |
---|---|
boolean |
isValueChanged(ObjectAndPersistInfo objectAndItsClassInfo)
to know if object state change according to its original value
also compute reference change list |
int |
numberOfByteForData(ObjectAndPersistInfo objectAndItsClassInfo)
obtains the number of bytes need to store object state
|
void |
prepareWrite(ObjectAndPersistInfo objectAndItsClassInfo)
prepare possible write of object
|
void |
setReferenceChangeListForNewObject(ObjectAndPersistInfo objectAndItsClassInfo)
compute reference change list for new object
|
ObjectClassInfoAndDeclared[] |
willNotBeWroteImpl(ObjectAndPersistInfo object) |
protected ObjectClassInfoAndDeclared[] |
writeBodyAndItsHeader(byte[] binary,
int bodyBeginOffset,
ObjectAndPersistInfo objectAndItsClassInfo,
boolean updateOriginalValue) |
byteSize, byteSizeForFieldOrElement, computeReferenceChangeList, currentValuesToReferencedSoon, getObjectIOManager, isGenericValueChanged, setGarbageManagement, setReferenceChangeListForGeneric, willNotBeWrote, writeBody, writeCurrentValue, writeSignature, writeStaticFieldSignature
public ObjectOutputForBasic(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public void prepareWrite(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException
IObjectOutput
objectAndItsClassInfo
- the objectObjectIOException
ObjectIOInvalidClassException
ObjectIONotSerializableException
public int numberOfByteForData(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
AbstractObjectOutput
numberOfByteForData
in class AbstractObjectOutput
objectAndItsClassInfo
- the objectObjectIOException
public boolean isValueChanged(ObjectAndPersistInfo objectAndItsClassInfo)
IObjectOutput
objectAndItsClassInfo
- the object to testpublic void setReferenceChangeListForNewObject(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
IObjectOutput
ObjectIOException
protected final ObjectClassInfoAndDeclared[] writeBodyAndItsHeader(byte[] binary, int bodyBeginOffset, ObjectAndPersistInfo objectAndItsClassInfo, boolean updateOriginalValue) throws ObjectIOException
writeBodyAndItsHeader
in class AbstractObjectOutput
binary
- binary data of data record associated to objectbodyBeginOffset
- offset in binary data of begin of bodyobjectAndItsClassInfo
- 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
public ObjectClassInfoAndDeclared[] willNotBeWroteImpl(ObjectAndPersistInfo object) throws ObjectIOException
willNotBeWroteImpl
in class AbstractObjectOutput
ObjectIOException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.