com.sun.xml.internal.fastinfoset.util.ValueArray Java Examples
The following examples show how to use
com.sun.xml.internal.fastinfoset.util.ValueArray.
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: ParserVocabulary.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static int getIntegerValueFromProperty(String property) { String value = System.getProperty(property); if (value == null) { return Integer.MAX_VALUE; } try { return Math.max(Integer.parseInt(value), ValueArray.DEFAULT_CAPACITY); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
Example #2
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 #3
Source File: ParserVocabulary.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static int getIntegerValueFromProperty(String property) { String value = System.getProperty(property); if (value == null) { return Integer.MAX_VALUE; } try { return Math.max(Integer.parseInt(value), ValueArray.DEFAULT_CAPACITY); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
Example #4
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 #5
Source File: ParserVocabulary.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static int getIntegerValueFromProperty(String property) { String value = System.getProperty(property); if (value == null) { return Integer.MAX_VALUE; } try { return Math.max(Integer.parseInt(value), ValueArray.DEFAULT_CAPACITY); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
Example #6
Source File: ParserVocabulary.java From openjdk-jdk8u 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 #7
Source File: ParserVocabulary.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static int getIntegerValueFromProperty(String property) { String value = System.getProperty(property); if (value == null) { return Integer.MAX_VALUE; } try { return Math.max(Integer.parseInt(value), ValueArray.DEFAULT_CAPACITY); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
Example #8
Source File: ParserVocabulary.java From openjdk-jdk8u-backup 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 openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static int getIntegerValueFromProperty(String property) { String value = System.getProperty(property); if (value == null) { return Integer.MAX_VALUE; } try { return Math.max(Integer.parseInt(value), ValueArray.DEFAULT_CAPACITY); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
Example #10
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 #11
Source File: ParserVocabulary.java From hottub with GNU General Public License v2.0 | 5 votes |
private static int getIntegerValueFromProperty(String property) { String value = System.getProperty(property); if (value == null) { return Integer.MAX_VALUE; } try { return Math.max(Integer.parseInt(value), ValueArray.DEFAULT_CAPACITY); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
Example #12
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 #13
Source File: ParserVocabulary.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static int getIntegerValueFromProperty(String property) { String value = System.getProperty(property); if (value == null) { return Integer.MAX_VALUE; } try { return Math.max(Integer.parseInt(value), ValueArray.DEFAULT_CAPACITY); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
Example #14
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 #15
Source File: ParserVocabulary.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static int getIntegerValueFromProperty(String property) { String value = System.getProperty(property); if (value == null) { return Integer.MAX_VALUE; } try { return Math.max(Integer.parseInt(value), ValueArray.DEFAULT_CAPACITY); } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
Example #16
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; }