public class BSONPickler extends Object implements net.razorvine.pickle.IObjectPickler
IObjectPickler that pickles
BSON types only, so that they can be correctly unpickled into PyMongo
objects.
For documentation on Python's pickle protocol, see the following:
- https://docs.python.org/2/library/pickle.html
- http://svn.python.org/projects/python/trunk/Lib/pickletools.py| Constructor and Description |
|---|
BSONPickler() |
| Modifier and Type | Method and Description |
|---|---|
void |
pickle(Object obj,
OutputStream out,
net.razorvine.pickle.Pickler currentPickler)
Write the Python "pickle" representation of a BSON type.
|
public void pickle(Object obj, OutputStream out, net.razorvine.pickle.Pickler currentPickler) throws IOException
pickle in interface net.razorvine.pickle.IObjectPicklerobj - the object to be pickledout - the OutputStream to which to writecurrentPickler - the current Pickler instancenet.razorvine.pickle.PickleException - if an issue is encountered while serializing a
BSON objectIOException - if an issue is encountered writing to the
OutputStream