public interface IObjectOutput
| Modifier and Type | Method and Description |
|---|---|
int |
byteSize(ObjectAndPersistInfo objectAndItsClassInfo,
int headerDataSize)
compute bytes needs to store an object state for a class
it is number of byte to store object state + bytes to store object class identifier |
boolean |
isValueChanged(ObjectAndPersistInfo objectAndItsClassInfo)
to know if object state change according to its original value
also compute reference change list |
void |
prepareWrite(ObjectAndPersistInfo objectAndItsClassInfo)
prepare possible write of object
|
void |
setGarbageManagement(boolean garbageManagement) |
void |
setReferenceChangeListForNewObject(ObjectAndPersistInfo objectAndItsClassInfo)
compute reference change list for new object
|
ObjectClassInfoAndDeclared[] |
willNotBeWrote(ObjectAndPersistInfo objectAndPersistInfo) |
ObjectClassInfoAndDeclared[] |
writeBody(byte[] binary,
int bodyBeginOffset,
ObjectAndPersistInfo objectAndItsClassInfo,
boolean updateOriginalValue)
write body: body is data after number of link that represent object state
|
void setGarbageManagement(boolean garbageManagement)
void prepareWrite(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIOTooBigForSerializationException
objectAndItsClassInfo - the objectObjectIOExceptionObjectIONotSerializableExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIOClassNotFoundExceptionObjectIODataRecordNotFoundExceptionObjectIOTooBigForSerializationExceptionint byteSize(ObjectAndPersistInfo objectAndItsClassInfo, int headerDataSize) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException
objectAndItsClassInfo - the objectheaderDataSize - ObjectIOException - data to store size errorObjectIONotSerializableExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIOClassNotFoundExceptionObjectIODataRecordNotFoundExceptionboolean isValueChanged(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIODataCorruptedException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException
objectAndItsClassInfo - the object to testObjectIOExceptionObjectIODataRecordNotFoundExceptionObjectIODataCorruptedExceptionObjectIOClassNotFoundExceptionObjectClassInfoAndDeclared[] writeBody(byte[] binary, int bodyBeginOffset, ObjectAndPersistInfo objectAndItsClassInfo, boolean updateOriginalValue) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataCorruptedException
binary - binary data of data record associated to objectbodyBeginOffset - offset in binary data of begin of body, it is the header data
sizeobjectAndItsClassInfo - 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 )ObjectIOExceptionObjectIONotSerializableExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectClassInfoAndDeclared[] willNotBeWrote(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException
objectAndPersistInfo - the object which for state will not be wroteObjectIOExceptionvoid setReferenceChangeListForNewObject(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
objectAndItsClassInfo - ObjectIOExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.