public class

Deserializer

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

Class Overview

This class allows the deserialization of a stream of bytes into object(s).

The deserialize() method is interruptible.

Summary

Public Constructors
Deserializer(ITypeIdProvider customTypeIdProvider, InputStream stream)
Deserializer(ITypeIdProvider customTypeIdProvider, List<ClassLoader> classloaders, InputStream stream)
Public Methods
void addObjectCreatedHook(Class<?> c, IDeserializationEventHandler handler)
void addProgressCallback(IProgressCallback callback)
<T> T deserialize(Class<T> wantedType)
Object deserialize()
int getFlags()
int getObjectCount()
Collection<Object> getObjects()
int getVersion()
void initialize()
boolean isInitialized()
boolean needsStringPool()
void removeObjectCreatedHook(Class<?> c, IDeserializationEventHandler handler)
void removeProgressCallback(IProgressCallback callback)
void setExpectedObjectCount(int count)
void setStringPool(List<String> stringpool)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Deserializer (ITypeIdProvider customTypeIdProvider, InputStream stream)

public Deserializer (ITypeIdProvider customTypeIdProvider, List<ClassLoader> classloaders, InputStream stream)

Public Methods

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

public void addProgressCallback (IProgressCallback callback)

public T deserialize (Class<T> wantedType)

Throws
IOException

public Object deserialize ()

Throws
IOException

public int getFlags ()

public int getObjectCount ()

public Collection<Object> getObjects ()

public int getVersion ()

public void initialize ()

Throws
IOException

public boolean isInitialized ()

public boolean needsStringPool ()

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

public void removeProgressCallback (IProgressCallback callback)

public void setExpectedObjectCount (int count)

public void setStringPool (List<String> stringpool)