@NotStorableClass public class ObjectOutputGeneric extends AbstractObjectOutputGenericNotStatic
objectIOOutputStream
classInfoFactory, helperBinaryConversion, helperReflect, logger, NO_SOONS, objectIOManager, proxyManager2
Constructor and Description |
---|
ObjectOutputGeneric(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 objectAndPersistInfo)
obtains the number of bytes need to store object state
|
void |
prepareWrite(ObjectAndPersistInfo objectAndPersistInfo)
prepare possible write of object
|
ObjectClassInfoAndDeclared[] |
willNotBeWroteImpl(ObjectAndPersistInfo object) |
protected ObjectClassInfoAndDeclared[] |
writeBodyImpl(byte[] binary,
int fieldBeginOffset,
ObjectAndPersistInfo object,
boolean updateOriginalValue) |
numberOfByteForDataGeneric, prepareWriteForSerializableWriteFields, prepareWriteGenericAllDeclaredFields, prepareWriteGenericForFields, writeBodyAndItsHeader
numberOfByteForDataSerializable, prepareWriteExternalizable, prepareWriteForSerializableDefaultWrite, prepareWriteSerializable, setCurrentValue, setCurrentValueAndComputeBinarySize, setReferenceChangeListForNewObject, writeBodySerializable
byteSize, byteSizeForFieldOrElement, computeReferenceChangeList, currentValuesToReferencedSoon, getObjectIOManager, isGenericValueChanged, setGarbageManagement, setReferenceChangeListForGeneric, willNotBeWrote, writeBody, writeCurrentValue, writeSignature, writeStaticFieldSignature
public ObjectOutputGeneric(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public void prepareWrite(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataCorruptedException
IObjectOutput
objectAndPersistInfo
- the objectObjectIOException
ObjectIOInvalidClassException
ObjectIONotSerializableException
ObjectIODataCorruptedException
public ObjectClassInfoAndDeclared[] willNotBeWroteImpl(ObjectAndPersistInfo object) throws ObjectIOException
willNotBeWroteImpl
in class AbstractObjectOutput
ObjectIOException
public boolean isValueChanged(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
IObjectOutput
objectAndItsClassInfo
- the object to testObjectIOException
public int numberOfByteForData(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException
AbstractObjectOutput
numberOfByteForData
in class AbstractObjectOutput
objectAndPersistInfo
- the objectObjectIOException
ObjectIOInvalidClassException
ObjectIONotSerializableException
protected ObjectClassInfoAndDeclared[] writeBodyImpl(byte[] binary, int fieldBeginOffset, ObjectAndPersistInfo object, boolean updateOriginalValue) throws ObjectIOException, ObjectIODataCorruptedException
writeBodyImpl
in class AbstractObjectOutputGeneric
binary
- 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 )ObjectIOException
ObjectIODataCorruptedException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.