@NotStorableClass public abstract class AbstractObjectOutputGeneric extends AbstractObjectOutput
| Modifier and Type | Field and Description |
|---|---|
protected ObjectIOOutputStream |
objectIOOutputStream |
classInfoFactory, helperBinaryConversion, helperReflect, logger, NO_SOONS, objectIOManager, proxyManager2| Constructor and Description |
|---|
AbstractObjectOutputGeneric(IObjectIOManagerForObjectIO objectIOManager,
ClassInfoFactory classInfoFactory,
IProxyManagerForObjectIO proxyManager2,
HelperBinaryConversion helperBinaryConversion) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
numberOfByteForDataSerializable(ObjectAndPersistInfo objectAndpersistInfo) |
protected void |
prepareWriteExternalizable(ObjectAndPersistInfo objectAndPersistInfo) |
void |
prepareWriteForSerializableDefaultWrite(ObjectAndPersistInfo objectAndItsClassInfo)
prepare possible write of "serializable" object for default write
serialization
|
protected abstract void |
prepareWriteGenericForFields(ObjectAndPersistInfo objectAndPersistInfo,
ClassInfo classInfo,
FieldInfo[] fields) |
protected void |
prepareWriteSerializable(ObjectAndPersistInfo objectAndPersistInfo) |
protected void |
setCurrentValue(ObjectAndPersistInfo objectAndPersistInfo,
FieldInfo[] fields,
ObjectClassInfoAndDeclared[] currentValue) |
protected int |
setCurrentValueAndComputeBinarySize(ObjectAndPersistInfo objectAndPersistInfo,
FieldInfo[] fields,
ObjectClassInfoAndDeclared[] currentValue) |
void |
setReferenceChangeListForNewObject(ObjectAndPersistInfo objectAndItsClassInfo)
compute reference change list for new object
|
protected abstract ObjectClassInfoAndDeclared[] |
writeBodyImpl(byte[] binary,
int fieldBeginOffset,
ObjectAndPersistInfo objectAndItsClassInfo,
boolean updateOriginalValue) |
protected ObjectClassInfoAndDeclared[] |
writeBodySerializable(byte[] binary,
int fieldBeginOffset,
ObjectAndPersistInfo objectAndPersistInfo)
write serialized form (from serializable or externalizable )
|
byteSize, byteSizeForFieldOrElement, computeReferenceChangeList, currentValuesToReferencedSoon, getObjectIOManager, isGenericValueChanged, numberOfByteForData, setGarbageManagement, setReferenceChangeListForGeneric, willNotBeWrote, willNotBeWroteImpl, writeBody, writeBodyAndItsHeader, writeCurrentValue, writeSignature, writeStaticFieldSignatureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValueChanged, prepareWriteprotected final ObjectIOOutputStream objectIOOutputStream
public AbstractObjectOutputGeneric(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public void prepareWriteForSerializableDefaultWrite(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIOInvalidClassException, ObjectIONotSerializableException, ObjectIODataCorruptedException
objectAndItsClassInfo - ObjectIOExceptionObjectIOInvalidClassExceptionObjectIONotSerializableExceptionObjectIODataCorruptedExceptionprotected abstract void prepareWriteGenericForFields(ObjectAndPersistInfo objectAndPersistInfo, ClassInfo classInfo, FieldInfo[] fields) throws ObjectIOException, ObjectIODataCorruptedException
protected void setCurrentValue(ObjectAndPersistInfo objectAndPersistInfo, FieldInfo[] fields, ObjectClassInfoAndDeclared[] currentValue) throws ObjectIOException, ObjectIODataCorruptedException
protected int setCurrentValueAndComputeBinarySize(ObjectAndPersistInfo objectAndPersistInfo, FieldInfo[] fields, ObjectClassInfoAndDeclared[] currentValue) throws ObjectIOException, ObjectIODataCorruptedException
protected void prepareWriteSerializable(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected void prepareWriteExternalizable(ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected int numberOfByteForDataSerializable(ObjectAndPersistInfo objectAndpersistInfo) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected abstract ObjectClassInfoAndDeclared[] writeBodyImpl(byte[] binary, int fieldBeginOffset, ObjectAndPersistInfo objectAndItsClassInfo, boolean updateOriginalValue) throws ObjectIOException, ObjectIODataCorruptedException
binary - binary data of data record associated to objectfieldBeginOffset - offset in binary data of begin of bodyobjectAndItsClassInfo - 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 )ObjectIOExceptionObjectIODataCorruptedExceptionprotected ObjectClassInfoAndDeclared[] writeBodySerializable(byte[] binary, int fieldBeginOffset, ObjectAndPersistInfo objectAndPersistInfo) throws ObjectIOException
binary - fieldBeginOffset - objectAndPersistInfo - ObjectIOExceptionpublic void setReferenceChangeListForNewObject(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException
IObjectOutputObjectIOExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.