Package net.razorvine.pickle
Java implementation of Python's pickle serialization protocol.
The
Unpickler supports the all pickle protocols.
The Pickler supports most of the protocol (level 2 only though).
Python's data types are mapped on their Java equivalents and vice versa.
Most basic data types and container types are supported by default.
You can add custom object pickle and unpickle classes to extend this
functionality.- Version:
- 1.2
- Author:
- Irmen de Jong (irmen@razorvine.net)
-
Interface Summary Interface Description IObjectConstructor Interface for Object Constructors that are used by the unpickler to create instances of non-primitive or custom classes.IObjectPickler Interface for Object Picklers used by the pickler, to pickle custom classes.Opcodes Pickle opcodes. -
Class Summary Class Description Pickler Pickle an object graph into a Python-compatible pickle stream.Pickler.Memo A memoized object.PickleUtils Utility stuff for dealing with pickle data streams.Unpickler Unpickles an object graph from a pickle data inputstream.UnpickleStack Helper type that represents the unpickler working stack. -
Exception Summary Exception Description InvalidOpcodeException Exception thrown when the unpickler encounters an invalid opcode.PickleException Exception thrown when something goes wrong with pickling or unpickling.PythonException Exception thrown that represents a certain Python exception.