@NotStorableClass public abstract class AbstractImmediateObjectInput extends AbstractObjectInput
classInfoFactory, helperBinaryConversion, helperReflect, logger, objectIOManager, proxyManager2| Constructor and Description |
|---|
AbstractImmediateObjectInput(IObjectIOManagerForObjectIO objectIOManager,
ClassInfoFactory classInfoFactory,
IProxyManagerForObjectIO proxyManager2,
HelperBinaryConversion helperBinaryConversion) |
| Modifier and Type | Method and Description |
|---|---|
ObjectAndPersistInfo |
createObject(DataRecordIdentifier dataRecordIdentifier,
byte[] binary,
ClassInfo classInfo,
StorageInfo storageInfo)
creation of a not existing object
set data record associated to created object as soon as it is created |
protected abstract ObjectAndPersistInfo |
createReadingBody(byte[] binary,
int bodyBeginOffset,
ClassInfo classInfo,
DataRecordIdentifier dataRecordIdentifier)
creation of a not existing object reading state in binary body part
object is not a proxy set data record associated to created object as soon as it is created |
boolean |
isImmediate() |
boolean |
isLazy() |
void |
setObjectState(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset)
set state of existing object by reading in the binary data
object state is after the data header ( number of link and class name identifier) |
void |
unsetObjectState(ObjectAndPersistInfo objectAndItsClassInfo) |
checkSignature, checkStaticFieldSignature, getObjectIOManager, getReferencedListpublic AbstractImmediateObjectInput(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public boolean isImmediate()
public boolean isLazy()
public final ObjectAndPersistInfo createObject(DataRecordIdentifier dataRecordIdentifier, byte[] binary, ClassInfo classInfo, StorageInfo storageInfo) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
IObjectInputdataRecordIdentifier - the data record identifier for data record that contains
object statebinary - data of data record for objectclassInfo - the object class information.the class can not exist.the
object class can be different than object.getClass()ObjectIOException - object creation errorObjectIODataRecordNotFoundException - data record for object not foundObjectIOClassNotFoundExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIONotSerializableExceptionpublic void setObjectState(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
IObjectInputobjectAndPersistInfo - object to setbinary - binary data containing the object stateoffset - begin of body data in record, it is header data sizeObjectIOException - reading errorObjectIODataRecordNotFoundException - data record not found in fileObjectIOInvalidClassExceptionObjectIOClassNotFoundExceptionObjectIODataCorruptedExceptionObjectIONotSerializableExceptionpublic void unsetObjectState(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
ObjectIOExceptionprotected abstract ObjectAndPersistInfo createReadingBody(byte[] binary, int bodyBeginOffset, ClassInfo classInfo, DataRecordIdentifier dataRecordIdentifier) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
binary - data of data record for objectbodyBeginOffset - offset in binary data of start of object stateclassInfo - the object class informationdataRecordIdentifier - ObjectIOExceptionObjectIODataRecordNotFoundExceptionObjectIOClassNotFoundExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIONotSerializableExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.