com.twistedmatrix.spread
Class Jelly

java.lang.Object
  |
  +--com.twistedmatrix.spread.Jelly

public class Jelly
extends java.lang.Object

Encode and decode objects using Jelly format s-expressions.


Inner Class Summary
protected static class Jelly.Dereference
           
static class Jelly.JellyDecoder
          Decoder for s-expressions.
static class Jelly.JellyEncoder
          Encodes an object using Jelly s-expression format.
protected static class Jelly.NotKnown
          Decoder for jelly objects.
static class Jelly.Unpersistable
          Class representing unpersistable objects.
 
Field Summary
protected static ByteString BOOLEAN
           
protected static ByteString CLASS
           
protected static ByteString DEREFERENCE
           
protected static ByteString DICTIONARY
           
protected static ByteString FALSE
           
protected static ByteString FUNCTION
           
protected static ByteString LIST
           
protected static ByteString MODULE
           
protected static ByteString NONE
           
protected static ByteString PERSISTENT
           
protected static ByteString REFERENCE
           
protected static ByteString TRUE
           
protected static ByteString TUPLE
           
protected static ByteString UNICODE
           
protected static ByteString UNPERSISTABLE
           
 
Constructor Summary
Jelly()
           
 
Method Summary
static java.lang.Object jelly(java.lang.Object o)
          Encode an object in jelly format, using default policy.
static java.lang.Object unjelly(java.lang.Object o)
          Decode an object in jelly format, using default policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

protected static final ByteString NONE

CLASS

protected static final ByteString CLASS

MODULE

protected static final ByteString MODULE

FUNCTION

protected static final ByteString FUNCTION

REFERENCE

protected static final ByteString REFERENCE

DEREFERENCE

protected static final ByteString DEREFERENCE

PERSISTENT

protected static final ByteString PERSISTENT

DICTIONARY

protected static final ByteString DICTIONARY

LIST

protected static final ByteString LIST

TUPLE

protected static final ByteString TUPLE

UNPERSISTABLE

protected static final ByteString UNPERSISTABLE

UNICODE

protected static final ByteString UNICODE

BOOLEAN

protected static final ByteString BOOLEAN

TRUE

protected static final ByteString TRUE

FALSE

protected static final ByteString FALSE
Constructor Detail

Jelly

public Jelly()
Method Detail

jelly

public static java.lang.Object jelly(java.lang.Object o)
Encode an object in jelly format, using default policy.

unjelly

public static java.lang.Object unjelly(java.lang.Object o)
Decode an object in jelly format, using default policy.