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