com.twistedmatrix.spread.pb
Class FailureSerializer
java.lang.Object
|
+--com.twistedmatrix.spread.pb.CopyableSerializer
|
+--com.twistedmatrix.spread.pb.FailureSerializer
- All Implemented Interfaces:
- CopyableUnserializer
- public class FailureSerializer
- extends CopyableSerializer
- implements CopyableUnserializer
Serialize and unserialize Failure objects.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COUNT
protected static final ByteString COUNT
FRAMES
protected static final ByteString FRAMES
STACK
protected static final ByteString STACK
TRACEBACK
protected static final ByteString TRACEBACK
TYPE
protected static final ByteString TYPE
VALUE
protected static final ByteString VALUE
FailureSerializer
public FailureSerializer()
- Create new serializer.
getStateFor
public java.lang.Object getStateFor(Jelly.JellyEncoder encoder,
java.lang.Object o)
- Return object's state as a sexp list. Override in subclasses.
- Overrides:
getStateFor
in class CopyableSerializer
unjellyFor
public java.lang.Object unjellyFor(Jelly.JellyDecoder decoder,
java.lang.Object[] stateList)
- Unserialize an object, given a s-expression.
- Specified by:
unjellyFor
in interface CopyableUnserializer