Encapsulates the mapping from textual XML element and attribute names to the ccnb binary encoding of those elements and attributes. More...
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< BinaryXMLDictionary > | getGlobalDictionaries () |
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] |
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.
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.
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.
static String org.ccnx.ccn.impl.encoding.BinaryXMLDictionary.unknownTagMarker | ( | long | tag | ) | [static] |
Encoding for unknown binary tags.
Reversible.