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)
Object deserialize()
<T> T deserialize(Class<T> wantedType)
int getObjectCount()
Collection<Object> getObjects()
void initialize()
void removeObjectCreatedHook(Class<?> c, IDeserializationEventHandler handler)
[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 Object deserialize ()

Throws
IOException
JebSerializationException

public T deserialize (Class<T> wantedType)

Throws
IOException
JebSerializationException

public int getObjectCount ()

public Collection<Object> getObjects ()

public void initialize ()

Throws
IOException
JebSerializationException

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