@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, getReferencedList
public 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
IObjectInput
dataRecordIdentifier
- 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 foundObjectIOClassNotFoundException
ObjectIOInvalidClassException
ObjectIODataCorruptedException
ObjectIONotSerializableException
public void setObjectState(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
IObjectInput
objectAndPersistInfo
- 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 fileObjectIOInvalidClassException
ObjectIOClassNotFoundException
ObjectIODataCorruptedException
ObjectIONotSerializableException
public void unsetObjectState(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
ObjectIOException
protected 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
- ObjectIOException
ObjectIODataRecordNotFoundException
ObjectIOClassNotFoundException
ObjectIOInvalidClassException
ObjectIODataCorruptedException
ObjectIONotSerializableException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.