public class MXParserCachingStrings extends MXParser implements Cloneable
NOTE: it is not non-validaint parser as there is no supporting internal DTD parsing no full XML 1.0 (or 1.1) character classes are supported.
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CACHE_LOAD
NOTE: implemented as integers and not flot to allow to work on J2ME.
|
protected static boolean |
CACHE_STATISTICS |
protected int |
cacheEntriesCount |
protected int |
cacheEntriesThreshold |
protected int |
cacheStatCalls |
protected int |
cacheStatRehash |
protected int |
cacheStatResets |
protected int |
cacheStatWalks |
protected static int |
INITIAL_CAPACITY |
protected char[][] |
keys |
protected static boolean |
TRACE_SIZING |
protected String[] |
values |
allStringsInterned, attributeCount, attributeName, attributeNameHash, attributePrefix, attributeUri, attributeValue, buf, bufAbsoluteStart, bufEnd, bufLoadFactor, bufSoftLimit, bufStart, charRefOneCharBuf, columnNumber, depth, elName, elNamespaceCount, elPrefix, elRawName, elRawNameEnd, elRawNameLine, elUri, emptyElementTag, entityEnd, entityName, entityNameBuf, entityNameHash, entityRefName, entityReplacement, entityReplacementBuf, eventType, FEATURE_NAMES_INTERNED, FEATURE_XML_ROUNDTRIP, inputEncoding, inputStream, lineNumber, location, LOOKUP_MAX, LOOKUP_MAX_CHAR, lookupNameChar, lookupNameStartChar, namespaceEnd, namespacePrefix, namespacePrefixHash, namespaceUri, NCODING, NO, pastEndTag, pc, pcEnd, pcStart, pos, posEnd, posStart, preventBufferCompaction, processNamespaces, PROPERTY_LOCATION, PROPERTY_XMLDECL_CONTENT, PROPERTY_XMLDECL_STANDALONE, PROPERTY_XMLDECL_VERSION, reachedEnd, READ_CHUNK_SIZE, reader, roundtripSupported, seenAmpersand, seenDocdecl, seenEndTag, seenMarkup, seenRoot, seenStartTag, TANDALONE, text, tokenize, usePC, VERSION, XML_URI, xmlDeclContent, xmlDeclStandalone, xmlDeclVersion, XMLNS_URI, YESCDSECT, COMMENT, DOCDECL, END_DOCUMENT, END_TAG, ENTITY_REF, FEATURE_PROCESS_DOCDECL, FEATURE_PROCESS_NAMESPACES, FEATURE_REPORT_NAMESPACE_ATTRIBUTES, FEATURE_VALIDATION, IGNORABLE_WHITESPACE, NO_NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_TAG, TEXT, TYPES| Constructor and Description |
|---|
MXParserCachingStrings() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
void |
finalize()
Hook to GC finalization to print statistics about pool cache impl.
|
boolean |
getFeature(String name)
Unknown properties are always returned as false
|
protected void |
initStringCache() |
protected String |
newString(char[] cbuf,
int off,
int len)
If feature name interning is enabled then this funtion
MUST return interned string.
|
protected String |
newStringIntern(char[] cbuf,
int off,
int len)
This is efficient implementation of pool that returns
interned String based on char[] input.
|
protected void |
resetStringCache() |
void |
setFeature(String name,
boolean state)
This allows to change name iterning property in this enhanced impl.
|
defineEntityReplacementText, ensureAttributesCapacity, ensureElementsCapacity, ensureEntityCapacity, ensureNamespacesCapacity, ensurePC, fastHash, fillBuf, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getColumnNumber, getDepth, getEventType, getInputEncoding, getLineNumber, getName, getNamespace, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getPositionDescription, getPrefix, getProperty, getText, getTextCharacters, isAttributeDefault, isEmptyElementTag, isNameChar, isNameStartChar, isS, isWhitespace, joinPC, lookuEntityReplacement, more, next, nextImpl, nextTag, nextText, nextToken, parseAttribute, parseCDSect, parseComment, parseDocdecl, parseEndTag, parseEntityRef, parseEpilog, parsePI, parseProlog, parseStartTag, parseXmlDecl, parseXmlDeclWithVersion, printable, printable, require, requireInput, requireNextS, reset, setInput, setInput, setProperty, skipS, skipSubTreeprotected static final boolean CACHE_STATISTICS
protected static final boolean TRACE_SIZING
protected static final int INITIAL_CAPACITY
protected int cacheStatCalls
protected int cacheStatWalks
protected int cacheStatResets
protected int cacheStatRehash
protected static final int CACHE_LOAD
protected int cacheEntriesCount
protected int cacheEntriesThreshold
protected char[][] keys
protected String[] values
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void setFeature(String name, boolean state) throws XmlPullParserException
setFeature in interface XmlPullParsersetFeature in class MXParsername - a Stringstate - a booleanXmlPullParserException - If the feature is not supported or can not be setpublic boolean getFeature(String name)
MXParsergetFeature in interface XmlPullParsergetFeature in class MXParsername - The name of feature to be retrieved.public void finalize()
protected String newString(char[] cbuf, int off, int len)
protected String newStringIntern(char[] cbuf, int off, int len)
newStringIntern in class MXParserprotected void initStringCache()
protected void resetStringCache()
resetStringCache in class MXParserCopyright © 2013. All Rights Reserved.