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.


Field Summary
protected static ByteString COUNT
           
protected static ByteString FRAMES
           
protected static ByteString STACK
           
protected static ByteString TRACEBACK
           
protected static ByteString TYPE
           
protected static ByteString VALUE
           
 
Constructor Summary
FailureSerializer()
          Create new serializer.
 
Method Summary
 java.lang.Object getStateFor(Jelly.JellyEncoder encoder, java.lang.Object o)
          Return object's state as a sexp list.
 java.lang.Object unjellyFor(Jelly.JellyDecoder decoder, java.lang.Object[] stateList)
          Unserialize an object, given a s-expression.
 
Methods inherited from class com.twistedmatrix.spread.pb.CopyableSerializer
jellyFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FailureSerializer

public FailureSerializer()
Create new serializer.
Method Detail

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