@NotStorableClass public abstract class AbstractObjectInput extends Object implements IObjectInput
Modifier and Type | Field and Description |
---|---|
protected ClassInfoFactory |
classInfoFactory |
protected HelperBinaryConversion |
helperBinaryConversion |
protected static HelperReflect |
helperReflect |
protected JoafipLogger |
logger |
protected IObjectIOManagerForObjectIO |
objectIOManager |
protected IProxyManagerForObjectIO |
proxyManager2 |
Constructor and Description |
---|
AbstractObjectInput(IObjectIOManagerForObjectIO objectIOManager,
ClassInfoFactory classInfoFactory,
IProxyManagerForObjectIO proxyManager2,
HelperBinaryConversion helperBinaryConversion) |
Modifier and Type | Method and Description |
---|---|
protected int |
checkSignature(byte[] binary,
int signatureOffset,
ClassInfo classInfo)
read signature and check it according to signature of object class
|
protected int |
checkStaticFieldSignature(byte[] binary,
int signatureOffset,
ClassInfo classInfo)
read signature and check it according to signature of object class
|
IObjectIOManagerForObjectIO |
getObjectIOManager() |
DataRecordIdentifier[] |
getReferencedList(byte[] binary,
int beginOffset)
get the referenced object's data identifier from binary data containing
object state
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createObject, isImmediate, isLazy, setObjectState, unsetObjectState
protected final JoafipLogger logger
protected final ClassInfoFactory classInfoFactory
protected final HelperBinaryConversion helperBinaryConversion
protected static final HelperReflect helperReflect
protected final IObjectIOManagerForObjectIO objectIOManager
protected final IProxyManagerForObjectIO proxyManager2
public AbstractObjectInput(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public IObjectIOManagerForObjectIO getObjectIOManager()
public DataRecordIdentifier[] getReferencedList(byte[] binary, int beginOffset) throws ObjectIOException
IObjectInput
getReferencedList
in interface IObjectInput
binary
- binary data of data record associated to objectbeginOffset
- start of field/element data in binaryObjectIOException
protected int checkSignature(byte[] binary, int signatureOffset, ClassInfo classInfo) throws ObjectIOInvalidClassException, ObjectIOException
binary
- binary data to read fromsignatureOffset
- signature offset in binary dataclassInfo
- class information of object used for signatureObjectIOInvalidClassException
ObjectIOException
protected int checkStaticFieldSignature(byte[] binary, int signatureOffset, ClassInfo classInfo) throws ObjectIOInvalidClassException, ObjectIOException
binary
- binary data to read fromsignatureOffset
- signature offset in binary dataclassInfo
- class information of object used for signaturestaticPersistence
- true if static persistenceObjectIOInvalidClassException
ObjectIOException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.