protected void resetOnError() { _namespacePrefixesIndex = 0; if (_v == null) { _prefixTable.clearCompletely(); } _duplicateAttributeVerifier.clear(); }
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(); }
/** * Method returns an index of the passed character buffer in * <code>CharArrayIntMap</code>. * * @return index of character buffer in <code>CharArrayIntMap</code>, * otherwise NOT_PRESENT. */ public final int get(char[] ch, int start, int length) { final int hash = hashHash(CharArray.hashCode(ch, start, length)); return get(ch, start, length, hash); }
public void addToCharArrayTable(CharArray c) { if (_serializerVocabulary.characterContentChunk.obtainIndex(c.ch, c.start, c.length, false) == KeyIntMap.NOT_PRESENT) { _parserVocabulary.characterContentChunk.add(c.ch, c.length); } _v.characterContentChunks.add(c.toString()); }
public final void add(CharArray s) { if (_size == _array.length) { resize(); } _array[_size++] = s; }
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(); }
/** * Method returns an index of the passed character buffer in * <code>CharArrayIntMap</code>. * * @return index of character buffer in <code>CharArrayIntMap</code>, * otherwise NOT_PRESENT. */ public final int get(char[] ch, int start, int length) { final int hash = hashHash(CharArray.hashCode(ch, start, length)); return get(ch, start, length, hash); }
public void addToCharArrayTable(CharArray c) { if (_serializerVocabulary.characterContentChunk.obtainIndex(c.ch, c.start, c.length, false) == KeyIntMap.NOT_PRESENT) { _parserVocabulary.characterContentChunk.add(c.ch, c.length); } _v.characterContentChunks.add(c.toString()); }
protected void resetOnError() { _namespacePrefixesIndex = 0; if (_v == null) { _prefixTable.clearCompletely(); } _duplicateAttributeVerifier.clear(); }
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(); }
/** * Method returns an index of the passed character buffer in * <code>CharArrayIntMap</code>. * * @return index of character buffer in <code>CharArrayIntMap</code>, * otherwise NOT_PRESENT. */ public final int get(char[] ch, int start, int length) { final int hash = hashHash(CharArray.hashCode(ch, start, length)); return get(ch, start, length, hash); }
public void addToCharArrayTable(CharArray c) { if (_serializerVocabulary.characterContentChunk.obtainIndex(c.ch, c.start, c.length, false) == KeyIntMap.NOT_PRESENT) { _parserVocabulary.characterContentChunk.add(c.ch, c.length); } _v.characterContentChunks.add(c.toString()); }
protected void resetOnError() { _namespacePrefixesIndex = 0; if (_v == null) { _prefixTable.clearCompletely(); } _duplicateAttributeVerifier.clear(); }