@NotStorableClass public abstract class AbstractObjectInputGeneric extends AbstractObjectInput
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FAILED_CREATE_OBJECT
error message
|
classInfoFactory, helperBinaryConversion, helperReflect, logger, objectIOManager, proxyManager2| Constructor and Description |
|---|
AbstractObjectInputGeneric(IObjectIOManagerForObjectIO objectIOManager,
ClassInfoFactory classInfoFactory,
IProxyManagerForObjectIO proxyManager2,
HelperBinaryConversion helperBinaryConversion) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSonReadObject(ObjectAndPersistInfo objectAndPersistInfo,
ObjectClassInfoAndDeclared objectClassInfoAndDeclared)
add son read object for an object
|
protected abstract int |
checkSignatureImpl(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset) |
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 |
createObjectImpl(byte[] binary,
int offset,
ClassInfo classInfo,
StorageInfo storageInfo,
DataRecordIdentifier dataRecordIdentifier)
the object creation, instance of object class ( may be a proxy )
|
ObjectIOGetField |
getField(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int beginOffset) |
protected abstract FieldInfo[] |
getFieldToSetInfoImpl(ClassInfo classInfo) |
DataRecordIdentifier[] |
getReferencedList(byte[] binary,
int offset)
get the referenced object's data identifier from binary data containing
object state
|
protected abstract void |
initializeObject(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset)
initialize object after creation
|
protected abstract List<ObjectAndPersistInfo> |
readObjectStoredState(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset) |
protected List<ObjectAndPersistInfo> |
readObjectStoredStateGeneric(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset) |
protected void |
setObjectAllDeclaredFieldsValueToNull(ObjectAndPersistInfo objectAndItsClassInfo) |
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) |
protected void |
setObjectStateExternalizable(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset) |
protected void |
setObjectStateExternalizable(ObjectAndPersistInfo objectAndPersistInfo,
IObjectIOInputStream objectIOInputStream,
boolean setOriginalValue) |
protected void |
setObjectStateFromFieldValueListGeneric(ObjectAndPersistInfo objectAndPersistInfo,
ValuedFieldList valuedFieldList) |
protected abstract void |
setObjectStateFromFieldValueListImpl(ObjectAndPersistInfo objectAndPersistInfo,
ValuedFieldList valuedFieldList)
do not set original value of object in objectAndPersistInfo
|
protected void |
setObjectStateGeneric(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int beginOffset,
boolean setOriginalValue)
set state of existing object by reading in the binary data
object state start at offset position |
protected int |
setObjectStateGenericNoLengthCheck(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int beginOffset,
boolean setOriginalValue) |
protected abstract void |
setObjectStateImpl(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset) |
protected void |
setObjectStateSerializable(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset) |
protected void |
setObjectStateSerializable(ObjectAndPersistInfo objectAndPersistInfo,
IObjectIOInputStream objectIOInputStream,
boolean setOriginalValue) |
checkSignature, checkStaticFieldSignature, getObjectIOManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisImmediate, isLazy, unsetObjectStateprotected static final String FAILED_CREATE_OBJECT
public AbstractObjectInputGeneric(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public final ObjectAndPersistInfo createObject(DataRecordIdentifier dataRecordIdentifier, byte[] binary, ClassInfo classInfo, StorageInfo storageInfo) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, 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 foundObjectIOInvalidClassExceptionObjectIOClassNotFoundExceptionObjectIODataCorruptedExceptionObjectIONotSerializableExceptionprotected abstract ObjectAndPersistInfo createObjectImpl(byte[] binary, int offset, ClassInfo classInfo, StorageInfo storageInfo, DataRecordIdentifier dataRecordIdentifier) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataCorruptedException
binary - offset - start of body data, it is the data record header sizeclassInfo - the object classstorageInfo - dataRecordIdentifier - ObjectIOExceptionObjectIODataRecordNotFoundExceptionObjectIOInvalidClassExceptionObjectIONotSerializableExceptionObjectIODataCorruptedExceptionprotected abstract FieldInfo[] getFieldToSetInfoImpl(ClassInfo classInfo) throws ObjectIOException
classInfo - ObjectIOExceptionprotected abstract void initializeObject(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
objectAndPersistInfo - object to initializebinary - body dataoffset - begin of body data, it is the data record header sizeObjectIODataRecordNotFoundException - data record for object not foundObjectIOException - initialization errorObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIOClassNotFoundExceptionObjectIONotSerializableExceptionpublic final 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 fileObjectIOInvalidClassExceptionObjectIOClassNotFoundExceptionObjectIODataCorruptedExceptionObjectIONotSerializableExceptionprotected abstract int checkSignatureImpl(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOInvalidClassException, ObjectIOException
protected abstract void setObjectStateFromFieldValueListImpl(ObjectAndPersistInfo objectAndPersistInfo, ValuedFieldList valuedFieldList) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
objectAndPersistInfo - valuedFieldList - ObjectIOExceptionObjectIOInvalidClassExceptionObjectIODataRecordNotFoundExceptionObjectIOClassNotFoundExceptionObjectIODataCorruptedExceptionObjectIONotSerializableExceptionprotected abstract List<ObjectAndPersistInfo> readObjectStoredState(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
objectAndPersistInfo - where store read statebinary - body dataoffset - begin of body data, it is the data record header sizeObjectIOExceptionObjectIONotSerializableExceptionObjectIODataCorruptedExceptionObjectIOInvalidClassExceptionObjectIOClassNotFoundExceptionObjectIODataRecordNotFoundExceptionprotected abstract void setObjectStateImpl(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected final void setObjectStateGeneric(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int beginOffset, boolean setOriginalValue) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
objectAndPersistInfo - object to setbinary - binary data containing object stateoffset - start of data for object statesetOriginalValue - true if set original valueObjectIOExceptionObjectIODataRecordNotFoundExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIOClassNotFoundExceptionObjectIONotSerializableExceptionprotected final int setObjectStateGenericNoLengthCheck(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int beginOffset, boolean setOriginalValue) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected final List<ObjectAndPersistInfo> readObjectStoredStateGeneric(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected void setObjectStateFromFieldValueListGeneric(ObjectAndPersistInfo objectAndPersistInfo, ValuedFieldList valuedFieldList) throws ObjectIOException, ObjectIOInvalidClassException
objectAndPersistInfo - valuedFieldList - ObjectIOExceptionObjectIOInvalidClassExceptionprotected final void setObjectStateSerializable(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataCorruptedException
protected void setObjectStateSerializable(ObjectAndPersistInfo objectAndPersistInfo, IObjectIOInputStream objectIOInputStream, boolean setOriginalValue) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected final void setObjectStateExternalizable(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected void setObjectStateExternalizable(ObjectAndPersistInfo objectAndPersistInfo, IObjectIOInputStream objectIOInputStream, boolean setOriginalValue) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected void setObjectAllDeclaredFieldsValueToNull(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIOInvalidClassException
public final ObjectIOGetField getField(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int beginOffset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
public void addSonReadObject(ObjectAndPersistInfo objectAndPersistInfo, ObjectClassInfoAndDeclared objectClassInfoAndDeclared) throws ObjectIOException
objectAndPersistInfo - object fatherobjectClassInfoAndDeclared - son object readObjectIOExceptionpublic DataRecordIdentifier[] getReferencedList(byte[] binary, int offset) throws ObjectIOException
IObjectInputgetReferencedList in interface IObjectInputgetReferencedList in class AbstractObjectInputbinary - binary data of data record associated to objectoffset - start of field/element data in binaryObjectIOExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.