Java Code Examples for com.sun.xml.internal.fastinfoset.util.FixedEntryStringIntMap

The following examples show how to use com.sun.xml.internal.fastinfoset.util.FixedEntryStringIntMap. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
private void convertVocabulary(com.sun.xml.internal.org.jvnet.fastinfoset.Vocabulary v) {
    final StringIntMap prefixMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    final StringIntMap namespaceNameMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_NAME, 8);
    final StringIntMap localNameMap = new StringIntMap();

    addToTable(v.restrictedAlphabets.iterator(), restrictedAlphabet);
    addToTable(v.encodingAlgorithms.iterator(), encodingAlgorithm);
    addToTable(v.prefixes.iterator(), prefix, prefixMap);
    addToTable(v.namespaceNames.iterator(), namespaceName, namespaceNameMap);
    addToTable(v.localNames.iterator(), localName, localNameMap);
    addToTable(v.otherNCNames.iterator(), otherNCName);
    addToTable(v.otherURIs.iterator(), otherURI);
    addToTable(v.attributeValues.iterator(), attributeValue);
    addToTable(v.otherStrings.iterator(), otherString);
    addToTable(v.characterContentChunks.iterator(), characterContentChunk);
    addToTable(v.elements.iterator(), elementName, false,
            prefixMap, namespaceNameMap, localNameMap);
    addToTable(v.attributes.iterator(), attributeName, true,
            prefixMap, namespaceNameMap, localNameMap);
}
 
Example 2
Source Project: jdk8u60   Source File: ParserVocabulary.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void convertVocabulary(com.sun.xml.internal.org.jvnet.fastinfoset.Vocabulary v) {
    final StringIntMap prefixMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    final StringIntMap namespaceNameMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_NAME, 8);
    final StringIntMap localNameMap = new StringIntMap();

    addToTable(v.restrictedAlphabets.iterator(), restrictedAlphabet);
    addToTable(v.encodingAlgorithms.iterator(), encodingAlgorithm);
    addToTable(v.prefixes.iterator(), prefix, prefixMap);
    addToTable(v.namespaceNames.iterator(), namespaceName, namespaceNameMap);
    addToTable(v.localNames.iterator(), localName, localNameMap);
    addToTable(v.otherNCNames.iterator(), otherNCName);
    addToTable(v.otherURIs.iterator(), otherURI);
    addToTable(v.attributeValues.iterator(), attributeValue);
    addToTable(v.otherStrings.iterator(), otherString);
    addToTable(v.characterContentChunks.iterator(), characterContentChunk);
    addToTable(v.elements.iterator(), elementName, false,
            prefixMap, namespaceNameMap, localNameMap);
    addToTable(v.attributes.iterator(), attributeName, true,
            prefixMap, namespaceNameMap, localNameMap);
}
 
Example 3
private void convertVocabulary(com.sun.xml.internal.org.jvnet.fastinfoset.Vocabulary v) {
    final StringIntMap prefixMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    final StringIntMap namespaceNameMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_NAME, 8);
    final StringIntMap localNameMap = new StringIntMap();

    addToTable(v.restrictedAlphabets.iterator(), restrictedAlphabet);
    addToTable(v.encodingAlgorithms.iterator(), encodingAlgorithm);
    addToTable(v.prefixes.iterator(), prefix, prefixMap);
    addToTable(v.namespaceNames.iterator(), namespaceName, namespaceNameMap);
    addToTable(v.localNames.iterator(), localName, localNameMap);
    addToTable(v.otherNCNames.iterator(), otherNCName);
    addToTable(v.otherURIs.iterator(), otherURI);
    addToTable(v.attributeValues.iterator(), attributeValue);
    addToTable(v.otherStrings.iterator(), otherString);
    addToTable(v.characterContentChunks.iterator(), characterContentChunk);
    addToTable(v.elements.iterator(), elementName, false,
            prefixMap, namespaceNameMap, localNameMap);
    addToTable(v.attributes.iterator(), attributeName, true,
            prefixMap, namespaceNameMap, localNameMap);
}
 
Example 4
private void convertVocabulary(com.sun.xml.internal.org.jvnet.fastinfoset.Vocabulary v) {
    final StringIntMap prefixMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    final StringIntMap namespaceNameMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_NAME, 8);
    final StringIntMap localNameMap = new StringIntMap();

    addToTable(v.restrictedAlphabets.iterator(), restrictedAlphabet);
    addToTable(v.encodingAlgorithms.iterator(), encodingAlgorithm);
    addToTable(v.prefixes.iterator(), prefix, prefixMap);
    addToTable(v.namespaceNames.iterator(), namespaceName, namespaceNameMap);
    addToTable(v.localNames.iterator(), localName, localNameMap);
    addToTable(v.otherNCNames.iterator(), otherNCName);
    addToTable(v.otherURIs.iterator(), otherURI);
    addToTable(v.attributeValues.iterator(), attributeValue);
    addToTable(v.otherStrings.iterator(), otherString);
    addToTable(v.characterContentChunks.iterator(), characterContentChunk);
    addToTable(v.elements.iterator(), elementName, false,
            prefixMap, namespaceNameMap, localNameMap);
    addToTable(v.attributes.iterator(), attributeName, true,
            prefixMap, namespaceNameMap, localNameMap);
}
 
Example 5
private void convertVocabulary(com.sun.xml.internal.org.jvnet.fastinfoset.Vocabulary v) {
    final StringIntMap prefixMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    final StringIntMap namespaceNameMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_NAME, 8);
    final StringIntMap localNameMap = new StringIntMap();

    addToTable(v.restrictedAlphabets.iterator(), restrictedAlphabet);
    addToTable(v.encodingAlgorithms.iterator(), encodingAlgorithm);
    addToTable(v.prefixes.iterator(), prefix, prefixMap);
    addToTable(v.namespaceNames.iterator(), namespaceName, namespaceNameMap);
    addToTable(v.localNames.iterator(), localName, localNameMap);
    addToTable(v.otherNCNames.iterator(), otherNCName);
    addToTable(v.otherURIs.iterator(), otherURI);
    addToTable(v.attributeValues.iterator(), attributeValue);
    addToTable(v.otherStrings.iterator(), otherString);
    addToTable(v.characterContentChunks.iterator(), characterContentChunk);
    addToTable(v.elements.iterator(), elementName, false,
            prefixMap, namespaceNameMap, localNameMap);
    addToTable(v.attributes.iterator(), attributeName, true,
            prefixMap, namespaceNameMap, localNameMap);
}
 
Example 6
Source Project: hottub   Source File: ParserVocabulary.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void convertVocabulary(com.sun.xml.internal.org.jvnet.fastinfoset.Vocabulary v) {
    final StringIntMap prefixMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    final StringIntMap namespaceNameMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_NAME, 8);
    final StringIntMap localNameMap = new StringIntMap();

    addToTable(v.restrictedAlphabets.iterator(), restrictedAlphabet);
    addToTable(v.encodingAlgorithms.iterator(), encodingAlgorithm);
    addToTable(v.prefixes.iterator(), prefix, prefixMap);
    addToTable(v.namespaceNames.iterator(), namespaceName, namespaceNameMap);
    addToTable(v.localNames.iterator(), localName, localNameMap);
    addToTable(v.otherNCNames.iterator(), otherNCName);
    addToTable(v.otherURIs.iterator(), otherURI);
    addToTable(v.attributeValues.iterator(), attributeValue);
    addToTable(v.otherStrings.iterator(), otherString);
    addToTable(v.characterContentChunks.iterator(), characterContentChunk);
    addToTable(v.elements.iterator(), elementName, false,
            prefixMap, namespaceNameMap, localNameMap);
    addToTable(v.attributes.iterator(), attributeName, true,
            prefixMap, namespaceNameMap, localNameMap);
}
 
Example 7
private void convertVocabulary(com.sun.xml.internal.org.jvnet.fastinfoset.Vocabulary v) {
    final StringIntMap prefixMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    final StringIntMap namespaceNameMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_NAME, 8);
    final StringIntMap localNameMap = new StringIntMap();

    addToTable(v.restrictedAlphabets.iterator(), restrictedAlphabet);
    addToTable(v.encodingAlgorithms.iterator(), encodingAlgorithm);
    addToTable(v.prefixes.iterator(), prefix, prefixMap);
    addToTable(v.namespaceNames.iterator(), namespaceName, namespaceNameMap);
    addToTable(v.localNames.iterator(), localName, localNameMap);
    addToTable(v.otherNCNames.iterator(), otherNCName);
    addToTable(v.otherURIs.iterator(), otherURI);
    addToTable(v.attributeValues.iterator(), attributeValue);
    addToTable(v.otherStrings.iterator(), otherString);
    addToTable(v.characterContentChunks.iterator(), characterContentChunk);
    addToTable(v.elements.iterator(), elementName, false,
            prefixMap, namespaceNameMap, localNameMap);
    addToTable(v.attributes.iterator(), attributeName, true,
            prefixMap, namespaceNameMap, localNameMap);
}
 
Example 8
Source Project: openjdk-8   Source File: ParserVocabulary.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void convertVocabulary(com.sun.xml.internal.org.jvnet.fastinfoset.Vocabulary v) {
    final StringIntMap prefixMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    final StringIntMap namespaceNameMap = new FixedEntryStringIntMap(
            EncodingConstants.XML_NAMESPACE_NAME, 8);
    final StringIntMap localNameMap = new StringIntMap();

    addToTable(v.restrictedAlphabets.iterator(), restrictedAlphabet);
    addToTable(v.encodingAlgorithms.iterator(), encodingAlgorithm);
    addToTable(v.prefixes.iterator(), prefix, prefixMap);
    addToTable(v.namespaceNames.iterator(), namespaceName, namespaceNameMap);
    addToTable(v.localNames.iterator(), localName, localNameMap);
    addToTable(v.otherNCNames.iterator(), otherNCName);
    addToTable(v.otherURIs.iterator(), otherURI);
    addToTable(v.attributeValues.iterator(), attributeValue);
    addToTable(v.otherStrings.iterator(), otherString);
    addToTable(v.characterContentChunks.iterator(), characterContentChunk);
    addToTable(v.elements.iterator(), elementName, false,
            prefixMap, namespaceNameMap, localNameMap);
    addToTable(v.attributes.iterator(), attributeName, true,
            prefixMap, namespaceNameMap, localNameMap);
}
 
Example 9
public SerializerVocabulary() {
    tables[RESTRICTED_ALPHABET] = restrictedAlphabet = new StringIntMap(4);
    tables[ENCODING_ALGORITHM] = encodingAlgorithm = new StringIntMap(4);
    tables[PREFIX] = prefix = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    tables[NAMESPACE_NAME] = namespaceName = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_NAME, 8);
    tables[LOCAL_NAME] = localName = new StringIntMap();
    tables[OTHER_NCNAME] = otherNCName = new StringIntMap(4);
    tables[OTHER_URI] = otherURI = new StringIntMap(4);
    tables[ATTRIBUTE_VALUE] = attributeValue = new StringIntMap();
    tables[OTHER_STRING] = otherString = new CharArrayIntMap(4);
    tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk = new CharArrayIntMap();
    tables[ELEMENT_NAME] = elementName = new LocalNameQualifiedNamesMap();
    tables[ATTRIBUTE_NAME] = attributeName = new LocalNameQualifiedNamesMap();
}
 
Example 10
Source Project: jdk8u60   Source File: SerializerVocabulary.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SerializerVocabulary() {
    tables[RESTRICTED_ALPHABET] = restrictedAlphabet = new StringIntMap(4);
    tables[ENCODING_ALGORITHM] = encodingAlgorithm = new StringIntMap(4);
    tables[PREFIX] = prefix = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    tables[NAMESPACE_NAME] = namespaceName = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_NAME, 8);
    tables[LOCAL_NAME] = localName = new StringIntMap();
    tables[OTHER_NCNAME] = otherNCName = new StringIntMap(4);
    tables[OTHER_URI] = otherURI = new StringIntMap(4);
    tables[ATTRIBUTE_VALUE] = attributeValue = new StringIntMap();
    tables[OTHER_STRING] = otherString = new CharArrayIntMap(4);
    tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk = new CharArrayIntMap();
    tables[ELEMENT_NAME] = elementName = new LocalNameQualifiedNamesMap();
    tables[ATTRIBUTE_NAME] = attributeName = new LocalNameQualifiedNamesMap();
}
 
Example 11
public SerializerVocabulary() {
    tables[RESTRICTED_ALPHABET] = restrictedAlphabet = new StringIntMap(4);
    tables[ENCODING_ALGORITHM] = encodingAlgorithm = new StringIntMap(4);
    tables[PREFIX] = prefix = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    tables[NAMESPACE_NAME] = namespaceName = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_NAME, 8);
    tables[LOCAL_NAME] = localName = new StringIntMap();
    tables[OTHER_NCNAME] = otherNCName = new StringIntMap(4);
    tables[OTHER_URI] = otherURI = new StringIntMap(4);
    tables[ATTRIBUTE_VALUE] = attributeValue = new StringIntMap();
    tables[OTHER_STRING] = otherString = new CharArrayIntMap(4);
    tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk = new CharArrayIntMap();
    tables[ELEMENT_NAME] = elementName = new LocalNameQualifiedNamesMap();
    tables[ATTRIBUTE_NAME] = attributeName = new LocalNameQualifiedNamesMap();
}
 
Example 12
public SerializerVocabulary() {
    tables[RESTRICTED_ALPHABET] = restrictedAlphabet = new StringIntMap(4);
    tables[ENCODING_ALGORITHM] = encodingAlgorithm = new StringIntMap(4);
    tables[PREFIX] = prefix = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    tables[NAMESPACE_NAME] = namespaceName = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_NAME, 8);
    tables[LOCAL_NAME] = localName = new StringIntMap();
    tables[OTHER_NCNAME] = otherNCName = new StringIntMap(4);
    tables[OTHER_URI] = otherURI = new StringIntMap(4);
    tables[ATTRIBUTE_VALUE] = attributeValue = new StringIntMap();
    tables[OTHER_STRING] = otherString = new CharArrayIntMap(4);
    tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk = new CharArrayIntMap();
    tables[ELEMENT_NAME] = elementName = new LocalNameQualifiedNamesMap();
    tables[ATTRIBUTE_NAME] = attributeName = new LocalNameQualifiedNamesMap();
}
 
Example 13
public SerializerVocabulary() {
    tables[RESTRICTED_ALPHABET] = restrictedAlphabet = new StringIntMap(4);
    tables[ENCODING_ALGORITHM] = encodingAlgorithm = new StringIntMap(4);
    tables[PREFIX] = prefix = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    tables[NAMESPACE_NAME] = namespaceName = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_NAME, 8);
    tables[LOCAL_NAME] = localName = new StringIntMap();
    tables[OTHER_NCNAME] = otherNCName = new StringIntMap(4);
    tables[OTHER_URI] = otherURI = new StringIntMap(4);
    tables[ATTRIBUTE_VALUE] = attributeValue = new StringIntMap();
    tables[OTHER_STRING] = otherString = new CharArrayIntMap(4);
    tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk = new CharArrayIntMap();
    tables[ELEMENT_NAME] = elementName = new LocalNameQualifiedNamesMap();
    tables[ATTRIBUTE_NAME] = attributeName = new LocalNameQualifiedNamesMap();
}
 
Example 14
Source Project: hottub   Source File: SerializerVocabulary.java    License: GNU General Public License v2.0 5 votes vote down vote up
public SerializerVocabulary() {
    tables[RESTRICTED_ALPHABET] = restrictedAlphabet = new StringIntMap(4);
    tables[ENCODING_ALGORITHM] = encodingAlgorithm = new StringIntMap(4);
    tables[PREFIX] = prefix = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    tables[NAMESPACE_NAME] = namespaceName = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_NAME, 8);
    tables[LOCAL_NAME] = localName = new StringIntMap();
    tables[OTHER_NCNAME] = otherNCName = new StringIntMap(4);
    tables[OTHER_URI] = otherURI = new StringIntMap(4);
    tables[ATTRIBUTE_VALUE] = attributeValue = new StringIntMap();
    tables[OTHER_STRING] = otherString = new CharArrayIntMap(4);
    tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk = new CharArrayIntMap();
    tables[ELEMENT_NAME] = elementName = new LocalNameQualifiedNamesMap();
    tables[ATTRIBUTE_NAME] = attributeName = new LocalNameQualifiedNamesMap();
}
 
Example 15
public SerializerVocabulary() {
    tables[RESTRICTED_ALPHABET] = restrictedAlphabet = new StringIntMap(4);
    tables[ENCODING_ALGORITHM] = encodingAlgorithm = new StringIntMap(4);
    tables[PREFIX] = prefix = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    tables[NAMESPACE_NAME] = namespaceName = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_NAME, 8);
    tables[LOCAL_NAME] = localName = new StringIntMap();
    tables[OTHER_NCNAME] = otherNCName = new StringIntMap(4);
    tables[OTHER_URI] = otherURI = new StringIntMap(4);
    tables[ATTRIBUTE_VALUE] = attributeValue = new StringIntMap();
    tables[OTHER_STRING] = otherString = new CharArrayIntMap(4);
    tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk = new CharArrayIntMap();
    tables[ELEMENT_NAME] = elementName = new LocalNameQualifiedNamesMap();
    tables[ATTRIBUTE_NAME] = attributeName = new LocalNameQualifiedNamesMap();
}
 
Example 16
public SerializerVocabulary() {
    tables[RESTRICTED_ALPHABET] = restrictedAlphabet = new StringIntMap(4);
    tables[ENCODING_ALGORITHM] = encodingAlgorithm = new StringIntMap(4);
    tables[PREFIX] = prefix = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_PREFIX, 8);
    tables[NAMESPACE_NAME] = namespaceName = new FixedEntryStringIntMap(EncodingConstants.XML_NAMESPACE_NAME, 8);
    tables[LOCAL_NAME] = localName = new StringIntMap();
    tables[OTHER_NCNAME] = otherNCName = new StringIntMap(4);
    tables[OTHER_URI] = otherURI = new StringIntMap(4);
    tables[ATTRIBUTE_VALUE] = attributeValue = new StringIntMap();
    tables[OTHER_STRING] = otherString = new CharArrayIntMap(4);
    tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk = new CharArrayIntMap();
    tables[ELEMENT_NAME] = elementName = new LocalNameQualifiedNamesMap();
    tables[ATTRIBUTE_NAME] = attributeName = new LocalNameQualifiedNamesMap();
}