A dynamic pickler for type T
.
A dynamic pickler for type T
. Its pickle
method takes an object-to-be-pickled of
static type T
, and pickles it to an instance of PBuilder
. In the process the object
is turned into some external representation like a byte array. The particular external
representation (the "pickle format") is defined by the builder
.
In contrast to static picklers (instances of type SPickler[T]
), a dynamic pickler of
type DPickler[T]
pickles any object of type T
.
Exception thrown when a stream ends unexpectedly during unpickling.
Exception thrown when the pickling or unpickling process fails.
Exception thrown when the pickling or unpickling process fails.
error message
exception causing the pickling exception if any
A static pickler for type T
.
A static pickler for type T
. Its pickle
method takes an object-to-be-pickled of
static type T
, and pickles it to an instance of PBuilder
. In the process the object
is turned into some external representation like a byte array. The particular external
representation (the "pickle format") is defined by the builder
.
This pickler requires that the dynamic type of the object-to-be-pickled is equal to
the erasure of its static type T
.