org.xmlpull.mxp1
Class MXParserNonValidating
java.lang.Object
|
+--org.xmlpull.mxp1.MXParser
|
+--org.xmlpull.mxp1.MXParserCachingStrings
|
+--org.xmlpull.mxp1.MXParserNonValidating
- All Implemented Interfaces:
- XmlPullParser
- public class MXParserNonValidating
- extends MXParserCachingStrings
Extend MXP parser to be full non validating XML 1.0 parser
(added internal DTD parsing and support for full XML 1.0 (or 1.1) character classes).
- Author:
- Aleksander Slominski
Fields inherited from class org.xmlpull.mxp1.MXParserCachingStrings |
CACHE_LOAD, CACHE_STATISTICS, cacheEntriesCount, cacheEntriesThreshold, cacheStatCalls, cacheStatRehash, cacheStatResets, cacheStatWalks, INITIAL_CAPACITY, keys, TRACE_SIZING, values |
Fields inherited from class org.xmlpull.mxp1.MXParser |
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, 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, YES |
Fields inherited from interface org.xmlpull.v1.XmlPullParser |
CDSECT, 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 |
Methods inherited from class org.xmlpull.mxp1.MXParser |
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, next, nextImpl, nextTag, nextText, nextToken, parseAttribute, parseCDSect, parseComment, parseEndTag, parseEntityRef, parseEpilog, parsePI, parseProlog, parseStartTag, parseXmlDecl, parseXmlDeclWithVersion, printable, printable, require, requireInput, requireNextS, reset, setInput, setInput, setProperty, skipS, skipSubTree |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MXParserNonValidating
public MXParserNonValidating()
setFeature
public void setFeature(java.lang.String name,
boolean state)
throws XmlPullParserException
- This allows to change processing DOCDECL (controls if parser is non-validating).
- Overrides:
setFeature
in class MXParserCachingStrings
- Following copied from class:
org.xmlpull.mxp1.MXParser
- Parameters:
name
- a Stringstate
- a boolean- Throws:
XmlPullParserException
-
getFeature
public boolean getFeature(java.lang.String name)
- Description copied from class:
MXParser
- Unknown properties are always returned as false
- Overrides:
getFeature
in class MXParserCachingStrings
- Following copied from interface:
org.xmlpull.v1.XmlPullParser
- Parameters:
name
- The name of feature to be retrieved.- Returns:
- The value of the feature.
- Throws:
java.lang.IllegalArgumentException
- if string the feature name is null
more
protected char more()
throws java.io.IOException,
XmlPullParserException
- Overrides:
more
in class MXParser
lookuEntityReplacement
protected char[] lookuEntityReplacement(int entitNameLen)
throws XmlPullParserException,
java.io.IOException
- Overrides:
lookuEntityReplacement
in class MXParser
parseDocdecl
protected void parseDocdecl()
throws XmlPullParserException,
java.io.IOException
- Overrides:
parseDocdecl
in class MXParser
processExternalId
protected char processExternalId(char ch)
throws XmlPullParserException,
java.io.IOException
processInternalSubset
protected void processInternalSubset()
throws XmlPullParserException,
java.io.IOException
processPEReference
protected void processPEReference()
throws XmlPullParserException,
java.io.IOException
processMarkupDecl
protected void processMarkupDecl(char ch)
throws XmlPullParserException,
java.io.IOException
processElementDecl
protected void processElementDecl(char ch)
throws XmlPullParserException,
java.io.IOException
processAttlistDecl
protected void processAttlistDecl(char ch)
throws XmlPullParserException,
java.io.IOException
processEntityDecl
protected void processEntityDecl(char ch)
throws XmlPullParserException,
java.io.IOException
processNotationDecl
protected void processNotationDecl(char ch)
throws XmlPullParserException,
java.io.IOException
readName
protected char readName(char ch)
throws XmlPullParserException,
java.io.IOException
Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.