com.twistedmatrix.spread
Class Jelly.JellyDecoder

java.lang.Object
  |
  +--com.twistedmatrix.spread.Jelly.JellyDecoder
Direct Known Subclasses:
PBJellyDecoder
Enclosing class:
Jelly

public static class Jelly.JellyDecoder
extends java.lang.Object

Decoder for s-expressions.


Field Summary
protected  ClassMapper classMapper
           
 
Constructor Summary
Jelly.JellyDecoder()
          Create a new decoder with the default class mapper.
Jelly.JellyDecoder(ClassMapper cm)
          Create a new decoder with the given class mapper.
 
Method Summary
 java.lang.Object unjelly(java.lang.Object o)
          Decode an s-expression.
protected  java.lang.Object unjellyInstance(ByteString type, java.util.List subList)
           
protected  java.lang.Object unjellyOther(ByteString type, java.util.List lst)
          Called to unjelly objects of any other type, or null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classMapper

protected ClassMapper classMapper
Constructor Detail

Jelly.JellyDecoder

public Jelly.JellyDecoder(ClassMapper cm)
Create a new decoder with the given class mapper.

Jelly.JellyDecoder

public Jelly.JellyDecoder()
Create a new decoder with the default class mapper.
Method Detail

unjelly

public java.lang.Object unjelly(java.lang.Object o)
Decode an s-expression.

unjellyInstance

protected java.lang.Object unjellyInstance(ByteString type,
                                           java.util.List subList)

unjellyOther

protected java.lang.Object unjellyOther(ByteString type,
                                        java.util.List lst)
Called to unjelly objects of any other type, or null. Override in subclasses.