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

This class is now only used for the _globalDictionaries static member and the UnknownTag methods. More...

List of all members.

Static Public Member Functions

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

Static Public Attributes

static final String UNKNOWN_TAG_MARKER = "UNKNOWN TAG: "

Static Protected Attributes

static Stack< XMLDictionary_globalDictionaries = new Stack<XMLDictionary>()

Static Package Functions

 [static initializer]


Detailed Description

This class is now only used for the _globalDictionaries static member and the UnknownTag methods.

It does not actually performany any dictionary function (as it does not extend XMLDictionary).

If you want a user-defined dictionary, create a class that extends XMLDictionary. See CCNProtocolDictionary (for an code-defined example) or FileBinaryXmlDictionary (for an external file defined example).

If you want to use a text dictionary directly, use FileBinaryXMLDictionary.

TODO:

See also:
BinaryXMLCodec XMLDictionary

Member Function Documentation

static String org.ccnx.ccn.impl.encoding.XMLDictionaryStack.unknownTagMarker ( long  tag  )  [static]

Encoding for unknown binary tags.

Reversible.

static void org.ccnx.ccn.impl.encoding.XMLDictionaryStack.pushGlobalXMLDictionary ( XMLDictionary  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 XMLDictionary org.ccnx.ccn.impl.encoding.XMLDictionaryStack.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.


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:44:53 2012 for Content-Centric Networking in Java by  doxygen 1.5.6