com.sun.xml.internal.fastinfoset.util.PrefixArray Java Examples
The following examples show how to use
com.sun.xml.internal.fastinfoset.util.PrefixArray.
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
Source File: PrintTable.java From hottub with GNU General Public License v2.0 | 5 votes |
public static void printArray(String title, PrefixArray a) { System.out.println(title); for (int i = 0; i < a.getSize(); i++) { System.out.println("" + (i + 1) + ": " + a.getArray()[i]); } }
Example #2
Source File: PrintTable.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static void printArray(String title, PrefixArray a) { System.out.println(title); for (int i = 0; i < a.getSize(); i++) { System.out.println("" + (i + 1) + ": " + a.getArray()[i]); } }
Example #3
Source File: ParserVocabulary.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of ParserVocabulary */ public ParserVocabulary() { namespaceName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); prefix = new PrefixArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); localName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherNCName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherURI = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); attributeValue = new StringArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); otherString = new CharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); characterContentChunk = new ContiguousCharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, ContiguousCharArrayArray.INITIAL_CHARACTER_SIZE, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_CHARACTERS); elementName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); attributeName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); tables[RESTRICTED_ALPHABET] = restrictedAlphabet; tables[ENCODING_ALGORITHM] = encodingAlgorithm; tables[PREFIX] = prefix; tables[NAMESPACE_NAME] = namespaceName; tables[LOCAL_NAME] = localName; tables[OTHER_NCNAME] = otherNCName; tables[OTHER_URI] = otherURI; tables[ATTRIBUTE_VALUE] = attributeValue; tables[OTHER_STRING] = otherString; tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk; tables[ELEMENT_NAME] = elementName; tables[ATTRIBUTE_NAME] = attributeName; }
Example #4
Source File: ParserVocabulary.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, PrefixArray a, StringIntMap m) { if (s.length() == 0) { return; } if (m != null) m.obtainIndex(s); a.add(s); }
Example #5
Source File: Decoder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(PrefixArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { array.add(decodeNonEmptyOctetStringOnSecondBitAsUtf8String()); } }
Example #6
Source File: VocabularyGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void addToTable(String s, Set v, StringIntMap m, PrefixArray a) { if (s.length() == 0) { return; } if (m.obtainIndex(s) == KeyIntMap.NOT_PRESENT) { a.add(s); } v.add(s); }
Example #7
Source File: PrintTable.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static void printArray(String title, PrefixArray a) { System.out.println(title); for (int i = 0; i < a.getSize(); i++) { System.out.println("" + (i + 1) + ": " + a.getArray()[i]); } }
Example #8
Source File: ParserVocabulary.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of ParserVocabulary */ public ParserVocabulary() { namespaceName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); prefix = new PrefixArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); localName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherNCName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherURI = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); attributeValue = new StringArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); otherString = new CharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); characterContentChunk = new ContiguousCharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, ContiguousCharArrayArray.INITIAL_CHARACTER_SIZE, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_CHARACTERS); elementName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); attributeName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); tables[RESTRICTED_ALPHABET] = restrictedAlphabet; tables[ENCODING_ALGORITHM] = encodingAlgorithm; tables[PREFIX] = prefix; tables[NAMESPACE_NAME] = namespaceName; tables[LOCAL_NAME] = localName; tables[OTHER_NCNAME] = otherNCName; tables[OTHER_URI] = otherURI; tables[ATTRIBUTE_VALUE] = attributeValue; tables[OTHER_STRING] = otherString; tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk; tables[ELEMENT_NAME] = elementName; tables[ATTRIBUTE_NAME] = attributeName; }
Example #9
Source File: ParserVocabulary.java From hottub with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, PrefixArray a, StringIntMap m) { if (s.length() == 0) { return; } if (m != null) m.obtainIndex(s); a.add(s); }
Example #10
Source File: Decoder.java From hottub with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(PrefixArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { array.add(decodeNonEmptyOctetStringOnSecondBitAsUtf8String()); } }
Example #11
Source File: VocabularyGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
public void addToTable(String s, Set v, StringIntMap m, PrefixArray a) { if (s.length() == 0) { return; } if (m.obtainIndex(s) == KeyIntMap.NOT_PRESENT) { a.add(s); } v.add(s); }
Example #12
Source File: ParserVocabulary.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of ParserVocabulary */ public ParserVocabulary() { namespaceName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); prefix = new PrefixArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); localName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherNCName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherURI = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); attributeValue = new StringArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); otherString = new CharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); characterContentChunk = new ContiguousCharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, ContiguousCharArrayArray.INITIAL_CHARACTER_SIZE, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_CHARACTERS); elementName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); attributeName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); tables[RESTRICTED_ALPHABET] = restrictedAlphabet; tables[ENCODING_ALGORITHM] = encodingAlgorithm; tables[PREFIX] = prefix; tables[NAMESPACE_NAME] = namespaceName; tables[LOCAL_NAME] = localName; tables[OTHER_NCNAME] = otherNCName; tables[OTHER_URI] = otherURI; tables[ATTRIBUTE_VALUE] = attributeValue; tables[OTHER_STRING] = otherString; tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk; tables[ELEMENT_NAME] = elementName; tables[ATTRIBUTE_NAME] = attributeName; }
Example #13
Source File: ParserVocabulary.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of ParserVocabulary */ public ParserVocabulary() { namespaceName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); prefix = new PrefixArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); localName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherNCName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherURI = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); attributeValue = new StringArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); otherString = new CharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); characterContentChunk = new ContiguousCharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, ContiguousCharArrayArray.INITIAL_CHARACTER_SIZE, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_CHARACTERS); elementName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); attributeName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); tables[RESTRICTED_ALPHABET] = restrictedAlphabet; tables[ENCODING_ALGORITHM] = encodingAlgorithm; tables[PREFIX] = prefix; tables[NAMESPACE_NAME] = namespaceName; tables[LOCAL_NAME] = localName; tables[OTHER_NCNAME] = otherNCName; tables[OTHER_URI] = otherURI; tables[ATTRIBUTE_VALUE] = attributeValue; tables[OTHER_STRING] = otherString; tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk; tables[ELEMENT_NAME] = elementName; tables[ATTRIBUTE_NAME] = attributeName; }
Example #14
Source File: ParserVocabulary.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, PrefixArray a, StringIntMap m) { if (s.length() == 0) { return; } if (m != null) m.obtainIndex(s); a.add(s); }
Example #15
Source File: Decoder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(PrefixArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { array.add(decodeNonEmptyOctetStringOnSecondBitAsUtf8String()); } }
Example #16
Source File: VocabularyGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void addToTable(String s, Set v, StringIntMap m, PrefixArray a) { if (s.length() == 0) { return; } if (m.obtainIndex(s) == KeyIntMap.NOT_PRESENT) { a.add(s); } v.add(s); }
Example #17
Source File: PrintTable.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static void printArray(String title, PrefixArray a) { System.out.println(title); for (int i = 0; i < a.getSize(); i++) { System.out.println("" + (i + 1) + ": " + a.getArray()[i]); } }
Example #18
Source File: ParserVocabulary.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of ParserVocabulary */ public ParserVocabulary() { namespaceName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); prefix = new PrefixArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); localName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherNCName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherURI = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); attributeValue = new StringArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); otherString = new CharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); characterContentChunk = new ContiguousCharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, ContiguousCharArrayArray.INITIAL_CHARACTER_SIZE, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_CHARACTERS); elementName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); attributeName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); tables[RESTRICTED_ALPHABET] = restrictedAlphabet; tables[ENCODING_ALGORITHM] = encodingAlgorithm; tables[PREFIX] = prefix; tables[NAMESPACE_NAME] = namespaceName; tables[LOCAL_NAME] = localName; tables[OTHER_NCNAME] = otherNCName; tables[OTHER_URI] = otherURI; tables[ATTRIBUTE_VALUE] = attributeValue; tables[OTHER_STRING] = otherString; tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk; tables[ELEMENT_NAME] = elementName; tables[ATTRIBUTE_NAME] = attributeName; }
Example #19
Source File: ParserVocabulary.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, PrefixArray a, StringIntMap m) { if (s.length() == 0) { return; } if (m != null) m.obtainIndex(s); a.add(s); }
Example #20
Source File: Decoder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(PrefixArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { array.add(decodeNonEmptyOctetStringOnSecondBitAsUtf8String()); } }
Example #21
Source File: VocabularyGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void addToTable(String s, Set v, StringIntMap m, PrefixArray a) { if (s.length() == 0) { return; } if (m.obtainIndex(s) == KeyIntMap.NOT_PRESENT) { a.add(s); } v.add(s); }
Example #22
Source File: PrintTable.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static void printArray(String title, PrefixArray a) { System.out.println(title); for (int i = 0; i < a.getSize(); i++) { System.out.println("" + (i + 1) + ": " + a.getArray()[i]); } }
Example #23
Source File: Decoder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(PrefixArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { array.add(decodeNonEmptyOctetStringOnSecondBitAsUtf8String()); } }
Example #24
Source File: ParserVocabulary.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, PrefixArray a, StringIntMap m) { if (s.length() == 0) { return; } if (m != null) m.obtainIndex(s); a.add(s); }
Example #25
Source File: Decoder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(PrefixArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { array.add(decodeNonEmptyOctetStringOnSecondBitAsUtf8String()); } }
Example #26
Source File: VocabularyGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void addToTable(String s, Set v, StringIntMap m, PrefixArray a) { if (s.length() == 0) { return; } if (m.obtainIndex(s) == KeyIntMap.NOT_PRESENT) { a.add(s); } v.add(s); }
Example #27
Source File: PrintTable.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static void printArray(String title, PrefixArray a) { System.out.println(title); for (int i = 0; i < a.getSize(); i++) { System.out.println("" + (i + 1) + ": " + a.getArray()[i]); } }
Example #28
Source File: ParserVocabulary.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of ParserVocabulary */ public ParserVocabulary() { namespaceName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); prefix = new PrefixArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); localName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherNCName = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, false); otherURI = new StringArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); attributeValue = new StringArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, true); otherString = new CharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); characterContentChunk = new ContiguousCharArrayArray(ValueArray.DEFAULT_CAPACITY, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS, ContiguousCharArrayArray.INITIAL_CHARACTER_SIZE, NON_IDENTIFYING_STRING_TABLE_MAXIMUM_CHARACTERS); elementName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); attributeName = new QualifiedNameArray(ValueArray.DEFAULT_CAPACITY, IDENTIFYING_STRING_TABLE_MAXIMUM_ITEMS); tables[RESTRICTED_ALPHABET] = restrictedAlphabet; tables[ENCODING_ALGORITHM] = encodingAlgorithm; tables[PREFIX] = prefix; tables[NAMESPACE_NAME] = namespaceName; tables[LOCAL_NAME] = localName; tables[OTHER_NCNAME] = otherNCName; tables[OTHER_URI] = otherURI; tables[ATTRIBUTE_VALUE] = attributeValue; tables[OTHER_STRING] = otherString; tables[CHARACTER_CONTENT_CHUNK] = characterContentChunk; tables[ELEMENT_NAME] = elementName; tables[ATTRIBUTE_NAME] = attributeName; }
Example #29
Source File: ParserVocabulary.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, PrefixArray a, StringIntMap m) { if (s.length() == 0) { return; } if (m != null) m.obtainIndex(s); a.add(s); }
Example #30
Source File: Decoder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(PrefixArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { array.add(decodeNonEmptyOctetStringOnSecondBitAsUtf8String()); } }