public abstract class

AbstractInternalDeserializer

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.serialization.AbstractInternalDeserializer

Class Overview

Base class for deserializers. Client code should not extend.

Summary

Fields
protected boolean cancelled
protected List<ClassLoader> classloaders
protected Map<Class<?>, Object> constructorMap
protected static Map<Class<?>, AbstractInternalDeserializer.CustomMethods> customMethods
protected ITypeIdProvider customTypeIdProvider
protected List<IPreObject> deferredObjects
protected int expectedObjectCount
protected LEDataInputStream in
protected Object mootObject
protected ITypeIdProvider nativeTypeIdProvider
protected Set<Integer> objIdPostgraphDone
protected MultiMap<Class<?>, IDeserializationEventHandler> objectCreatedHookMap
protected ObjenesisStd objenesis
protected Map<Integer, Object> objmap
protected List<IProgressCallback> progressCallbacks
Protected Constructors
AbstractInternalDeserializer(ITypeIdProvider customTypeIdProvider, List<ClassLoader> classloaders, LEDataInputStream in)
Public Methods
void addObjectCreatedHook(Class<?> c, IDeserializationEventHandler handler)
void addProgressCallback(IProgressCallback callback)
void close()
Object deserializeInternal()
int getObjectCount()
Collection<Object> getObjects()
InputStream getStream()
Object read()
Object read(Object object, Class<?> c)
void removeObjectCreatedHook(Class<?> c, IDeserializationEventHandler handler)
void removeProgressCallback(IProgressCallback callback)
abstract void restoreFields(Object o, Class<?> targetClass)
void setExpectedObjectCount(int count)
Protected Methods
AbstractInternalDeserializer.CustomMethods getCustomMethods(Object o, Class<?> targetClass)
Class<?> loadClass(String typeName)
void logObjectMap()
void notifyDeserializationEvent(int type, Class<?> c, Object o)
void notifyProgressCallbacks()
abstract Object readInternal(Object object, Class<?> c)
void registerObject(boolean isLeafObject, int objectId, Object o)
void resolveDeferredObjects()
void restoreFieldValue(Object o, Class<?> targetClass, int fieldId, Object fieldObject)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected boolean cancelled

protected List<ClassLoader> classloaders

protected Map<Class<?>, Object> constructorMap

protected static Map<Class<?>, AbstractInternalDeserializer.CustomMethods> customMethods

protected ITypeIdProvider customTypeIdProvider

protected List<IPreObject> deferredObjects

protected int expectedObjectCount

protected LEDataInputStream in

protected Object mootObject

protected ITypeIdProvider nativeTypeIdProvider

protected Set<Integer> objIdPostgraphDone

protected MultiMap<Class<?>, IDeserializationEventHandler> objectCreatedHookMap

protected ObjenesisStd objenesis

protected Map<Integer, Object> objmap

protected List<IProgressCallback> progressCallbacks

Protected Constructors

protected AbstractInternalDeserializer (ITypeIdProvider customTypeIdProvider, List<ClassLoader> classloaders, LEDataInputStream in)

Public Methods

public void addObjectCreatedHook (Class<?> c, IDeserializationEventHandler handler)

public void addProgressCallback (IProgressCallback callback)

public void close ()

Throws
IOException

public Object deserializeInternal ()

Throws
IOException

public int getObjectCount ()

public Collection<Object> getObjects ()

public InputStream getStream ()

public Object read ()

Throws
IOException

public Object read (Object object, Class<?> c)

Throws
IOException

public void removeObjectCreatedHook (Class<?> c, IDeserializationEventHandler handler)

public void removeProgressCallback (IProgressCallback callback)

public abstract void restoreFields (Object o, Class<?> targetClass)

Throws
IOException

public void setExpectedObjectCount (int count)

Protected Methods

protected AbstractInternalDeserializer.CustomMethods getCustomMethods (Object o, Class<?> targetClass)

protected Class<?> loadClass (String typeName)

Throws
ClassNotFoundException

protected void logObjectMap ()

protected void notifyDeserializationEvent (int type, Class<?> c, Object o)

Parameters
type event type: 1= object created (post creation)

protected void notifyProgressCallbacks ()

protected abstract Object readInternal (Object object, Class<?> c)

Throws
IOException

protected void registerObject (boolean isLeafObject, int objectId, Object o)

protected void resolveDeferredObjects ()

protected void restoreFieldValue (Object o, Class<?> targetClass, int fieldId, Object fieldObject)