Class AbstractInternalDeserializer
java.lang.Object
com.pnfsoftware.jeb.util.serialization.AbstractInternalDeserializer
Base class for deserializers. Client code should not extend.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected List<ClassLoader>protected static Map<Class<?>,com.pnfsoftware.jeb.util.serialization.AbstractInternalDeserializer.CustomMethods> protected ITypeIdProviderprotected List<com.pnfsoftware.jeb.util.serialization.IPreObject>protected intprotected LEDataInputStreamprotected Objectprotected ITypeIdProviderprotected MultiMap<Class<?>,IDeserializationEventHandler> protected org.objenesis.ObjenesisStdprotected List<IProgressCallback>
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractInternalDeserializer(ITypeIdProvider customTypeIdProvider, List<ClassLoader> classloaders, LEDataInputStream in) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddObjectCreatedHook(Class<?> c, IDeserializationEventHandler handler) voidaddProgressCallback(IProgressCallback callback) voidclose()protected com.pnfsoftware.jeb.util.serialization.AbstractInternalDeserializer.CustomMethodsgetCustomMethods(Object o, Class<?> targetClass) intprotected Class<?>protected voidprotected voidnotifyDeserializationEvent(int type, Class<?> c, Object o) protected voidread()protected abstract ObjectreadInternal(Object object, Class<?> c) protected voidregisterObject(boolean isLeafObject, int objectId, Object o) voidremoveObjectCreatedHook(Class<?> c, IDeserializationEventHandler handler) voidremoveProgressCallback(IProgressCallback callback) protected voidvoidrestoreFields(Object o, Class<?> targetClass) protected voidrestoreFieldValue(Object o, Class<?> targetClass, int fieldId, Object fieldObject) voidsetExpectedObjectCount(int count) 
- 
Field Details- 
in
- 
nativeTypeIdProvider
- 
customTypeIdProvider
- 
classloaders
- 
objenesisprotected org.objenesis.ObjenesisStd objenesis
- 
cancelledprotected boolean cancelled
- 
constructorMap
- 
mootObject
- 
objmap
- 
objIdPostgraphDone
- 
deferredObjects
- 
customMethods
- 
expectedObjectCountprotected int expectedObjectCount
- 
progressCallbacks
- 
objectCreatedHookMap
 
- 
- 
Constructor Details- 
AbstractInternalDeserializerprotected AbstractInternalDeserializer(ITypeIdProvider customTypeIdProvider, List<ClassLoader> classloaders, LEDataInputStream in) 
 
- 
- 
Method Details- 
getObjectCountpublic int getObjectCount()
- 
getObjects
- 
getStream
- 
deserializeInternal- Throws:
- IOException
 
- 
close- Throws:
- IOException
 
- 
read- Throws:
- IOException
 
- 
read- Throws:
- IOException
 
- 
readInternal- Throws:
- IOException
 
- 
registerObject
- 
loadClass- Throws:
- ClassNotFoundException
 
- 
restoreFieldValueprotected void restoreFieldValue(Object o, Class<?> targetClass, int fieldId, Object fieldObject) throws SerializationException - Throws:
- SerializationException
 
- 
getCustomMethodsprotected com.pnfsoftware.jeb.util.serialization.AbstractInternalDeserializer.CustomMethods getCustomMethods(Object o, Class<?> targetClass) throws SerializationException - Throws:
- SerializationException
 
- 
resolveDeferredObjectsprotected void resolveDeferredObjects()
- 
setExpectedObjectCountpublic void setExpectedObjectCount(int count) 
- 
addProgressCallback
- 
removeProgressCallback
- 
notifyProgressCallbacksprotected void notifyProgressCallbacks()
- 
addObjectCreatedHook
- 
removeObjectCreatedHook
- 
notifyDeserializationEvent- Parameters:
- type- event type: 1= object created (post creation)
- c-
- o-
 
- 
logObjectMapprotected void logObjectMap()
- 
restoreFields- Throws:
- IOException
 
 
-