org.ccnx.ccn.impl.encoding.BinaryXMLDictionary Class Reference

Encapsulates the mapping from textual XML element and attribute names to the ccnb binary encoding of those elements and attributes. More...

List of all members.

Public Member Functions

abstract Long stringToTag (String tag)
abstract String tagToString (long tagVal)

Static Public Member Functions

static BinaryXMLDictionary getDefaultDictionary ()
static Long decodeUnknownTag (String tagStr)
static boolean isUnknownTag (String tagStr)
static String unknownTagMarker (long tag)
 Encoding for unknown binary tags.
static void pushGlobalXMLDictionary (BinaryXMLDictionary dictionary)
 Push an XML dictionary onto stack used by all applications in this JVM.
static BinaryXMLDictionary popGlobalXMLDictionary ()
 Pop an XML dictionary onto stack used by all applications in this JVM.
static Stack< BinaryXMLDictionarygetGlobalDictionaries ()

Static Public Attributes

static final String UNKNOWN_TAG_MARKER = "UNKNOWN TAG: "

Static Protected Attributes

static Stack< BinaryXMLDictionary_globalDictionaries = new Stack<BinaryXMLDictionary>()

Static Package Functions

 [static initializer]

Detailed Description

Encapsulates the mapping from textual XML element and attribute names to the ccnb binary encoding of those elements and attributes.

Remove auto-loading of text dictionary, as it was making encode/decode too slow. Instead, to make a new dictionary, subclass this class and load it with your constant tag/label data. If you want to use a text dictionary directly, use FileBinaryXMLDictionary.

See also:
BinaryXMLCodec

Member Function Documentation

static BinaryXMLDictionary org.ccnx.ccn.impl.encoding.BinaryXMLDictionary.popGlobalXMLDictionary (  )  [static]

Pop an XML dictionary onto stack used by all applications in this JVM.

Will not pop the default dictionary off the bottom of the stack. For local dictionaries, see GenericXMLHandler.popXMLDictionary.

Returns:
the dictionary it popped if it popped one, otherwise null.
static void org.ccnx.ccn.impl.encoding.BinaryXMLDictionary.pushGlobalXMLDictionary ( BinaryXMLDictionary  dictionary  )  [static]

Push an XML dictionary onto stack used by all applications in this JVM.

This stack is pre-loaded with the default dictionary. For local dictionaries, see GenericXMLHandler.pushXMLDictionary.

Returns:
static String org.ccnx.ccn.impl.encoding.BinaryXMLDictionary.unknownTagMarker ( long  tag  )  [static]

Encoding for unknown binary tags.

Reversible.


The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:38 2011 for Content-Centric Networking in Java by  doxygen 1.6.3