@NotStorableClass public class ObjectOutputExternalizable extends AbstractObjectOutputGenericNotStatic
objectIOOutputStreamclassInfoFactory, helperBinaryConversion, helperReflect, logger, NO_SOONS, objectIOManager, proxyManager2| Constructor and Description |
|---|
ObjectOutputExternalizable(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 object)
obtains the number of bytes need to store object state
|
void |
prepareWrite(ObjectAndPersistInfo object)
prepare possible write of object
|
ObjectClassInfoAndDeclared[] |
willNotBeWroteImpl(ObjectAndPersistInfo objectAndPersistInfo) |
protected ObjectClassInfoAndDeclared[] |
writeBodyImpl(byte[] binary,
int fieldBeginOffset,
ObjectAndPersistInfo object,
boolean updateOriginalValue) |
numberOfByteForDataGeneric, prepareWriteForSerializableWriteFields, prepareWriteGenericAllDeclaredFields, prepareWriteGenericForFields, writeBodyAndItsHeadernumberOfByteForDataSerializable, prepareWriteExternalizable, prepareWriteForSerializableDefaultWrite, prepareWriteSerializable, setCurrentValue, setCurrentValueAndComputeBinarySize, setReferenceChangeListForNewObject, writeBodySerializablebyteSize, byteSizeForFieldOrElement, computeReferenceChangeList, currentValuesToReferencedSoon, getObjectIOManager, isGenericValueChanged, setGarbageManagement, setReferenceChangeListForGeneric, willNotBeWrote, writeBody, writeCurrentValue, writeSignature, writeStaticFieldSignaturepublic ObjectOutputExternalizable(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public void prepareWrite(ObjectAndPersistInfo object) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException
IObjectOutputobject - the objectObjectIOExceptionObjectIOInvalidClassExceptionObjectIONotSerializableExceptionObjectIODataRecordNotFoundExceptionObjectIOClassNotFoundExceptionObjectIODataCorruptedExceptionpublic ObjectClassInfoAndDeclared[] willNotBeWroteImpl(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException
willNotBeWroteImpl in class AbstractObjectOutputObjectIOExceptionpublic boolean isValueChanged(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIODataCorruptedException, ObjectIODataRecordNotFoundException
IObjectOutputobjectAndItsClassInfo - the object to testObjectIOExceptionObjectIODataCorruptedExceptionObjectIODataRecordNotFoundExceptionpublic int numberOfByteForData(ObjectAndPersistInfo object) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException
AbstractObjectOutputnumberOfByteForData in class AbstractObjectOutputobject - the objectObjectIOExceptionObjectIOInvalidClassExceptionObjectIONotSerializableExceptionObjectIODataRecordNotFoundExceptionObjectIOClassNotFoundExceptionObjectIODataCorruptedExceptionprotected ObjectClassInfoAndDeclared[] writeBodyImpl(byte[] binary, int fieldBeginOffset, ObjectAndPersistInfo object, boolean updateOriginalValue) throws ObjectIOException
writeBodyImpl in class AbstractObjectOutputGenericbinary - binary data of data record associated to objectfieldBeginOffset - offset in binary data of begin of bodyobject - 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 )ObjectIOExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.