public class Unpickler
extends java.lang.Object
| Constructor and Description |
|---|
Unpickler()
Create an unpickler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the unpickler and frees the resources such as the unpickle stack and memo table.
|
protected void |
dispatch(short key)
Process a single pickle stream opcode.
|
java.lang.Object |
load(java.io.InputStream stream)
Read a pickled object representation from the given input stream.
|
java.lang.Object |
loads(byte[] pickledata)
Read a pickled object representation from the given pickle data bytes.
|
static void |
registerConstructor(java.lang.String module,
java.lang.String classname,
IObjectConstructor constructor)
Register additional object constructors for custom classes.
|
public static void registerConstructor(java.lang.String module,
java.lang.String classname,
IObjectConstructor constructor)
public java.lang.Object load(java.io.InputStream stream)
throws PickleException,
java.io.IOException
PickleExceptionjava.io.IOExceptionpublic java.lang.Object loads(byte[] pickledata)
throws PickleException,
java.io.IOException
PickleExceptionjava.io.IOExceptionpublic void close()
protected void dispatch(short key)
throws PickleException,
java.io.IOException
PickleExceptionjava.io.IOException