public class Unpickler extends Object
Modifier and Type | Field and Description |
---|---|
protected UnpickleStack |
stack |
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 Object |
dispatch(short key)
Process a single pickle stream opcode.
|
Object |
load(InputStream stream)
Read a pickled object representation from the given input stream.
|
Object |
loads(byte[] pickledata)
Read a pickled object representation from the given pickle data bytes.
|
static void |
registerConstructor(String module,
String classname,
IObjectConstructor constructor)
Register additional object constructors for custom classes.
|
protected UnpickleStack stack
public static void registerConstructor(String module, String classname, IObjectConstructor constructor)
public Object load(InputStream stream) throws PickleException, IOException
PickleException
IOException
public Object loads(byte[] pickledata) throws PickleException, IOException
PickleException
IOException
public void close()
protected Object dispatch(short key) throws PickleException, IOException
PickleException
IOException
Copyright © 2016. All Rights Reserved.