public class

SerializationManager

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

Class Overview

This object provides serializer and deserializers optimized for a collection of specific types. It implements the PNF-ORPD mechanism and specifications.

Currently, third-party code should not used the serializer - i.e., units produced by third-party plugins should be transient until the PNF-ORPD implementation is complete. If you choose to persist third-party units, make sure to read some limitations explained there.

See Also

Summary

Constants
int FLAG_HAS_STRINGPOOL
String MAGIC "PNF Software Obfuscation-Resilient Persisted Data"
Public Constructors
SerializationManager(ITypeIdProvider typeIdProvider)
Public Methods
void addClassloader(ClassLoader cl)
Register an additional classloader for deserialization.
Deserializer getDeserializer(InputStream in)
Serializer getSerializer(OutputStream out)
Serializer getSerializer(OutputStream out, boolean generateStringPool)
Serializer_v4 getSerializer_v4(OutputStream out)
ITypeIdProvider getTypeIdProvider()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int FLAG_HAS_STRINGPOOL

Constant Value: 1 (0x00000001)

public static final String MAGIC

"PNF Software Obfuscation-Resilient Persisted Data"

Constant Value: "PNF-ORPD"

Public Constructors

public SerializationManager (ITypeIdProvider typeIdProvider)

Public Methods

public void addClassloader (ClassLoader cl)

Register an additional classloader for deserialization. The additional classloaders take precedence over the system classloader, which is used if all else failed.

Calling this method is useless if the manager is to be used for serialization only.

Parameters
cl a classloader

public Deserializer getDeserializer (InputStream in)

public Serializer getSerializer (OutputStream out)

public Serializer getSerializer (OutputStream out, boolean generateStringPool)

public Serializer_v4 getSerializer_v4 (OutputStream out)

public ITypeIdProvider getTypeIdProvider ()