org.xmlpull.mxp1
Class MXParserNonValidating

java.lang.Object
  extended byorg.xmlpull.mxp1.MXParser
      extended byorg.xmlpull.mxp1.MXParserCachingStrings
          extended byorg.xmlpull.mxp1.MXParserNonValidating
All Implemented Interfaces:
java.lang.Cloneable, 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

Field Summary
 
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
 
Constructor Summary
MXParserNonValidating()
           
 
Method Summary
 boolean getFeature(java.lang.String name)
          Unknown properties are always returned as false
protected  char[] lookuEntityReplacement(int entitNameLen)
           
protected  char more()
           
protected  void parseDocdecl()
           
protected  void processAttlistDecl(char ch)
           
protected  void processElementDecl(char ch)
           
protected  void processEntityDecl(char ch)
           
protected  char processExternalId(char ch)
           
protected  void processInternalSubset()
           
protected  void processMarkupDecl(char ch)
           
protected  void processNotationDecl(char ch)
           
protected  void processPEReference()
           
protected  char readName(char ch)
           
 void setFeature(java.lang.String name, boolean state)
          This allows to change processing DOCDECL (controls if parser is non-validating).
 
Methods inherited from class org.xmlpull.mxp1.MXParserCachingStrings
clone, finalize, initStringCache, newString, newStringIntern, resetStringCache
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MXParserNonValidating

public MXParserNonValidating()
Method Detail

setFeature

public void setFeature(java.lang.String name,
                       boolean state)
                throws XmlPullParserException
This allows to change processing DOCDECL (controls if parser is non-validating).

Specified by:
setFeature in interface XmlPullParser
Overrides:
setFeature in class MXParserCachingStrings
Throws:
XmlPullParserException

getFeature

public boolean getFeature(java.lang.String name)
Description copied from class: MXParser
Unknown properties are always returned as false

Specified by:
getFeature in interface XmlPullParser
Overrides:
getFeature in class MXParserCachingStrings

more

protected char more()
             throws java.io.IOException,
                    XmlPullParserException
Overrides:
more in class MXParser
Throws:
java.io.IOException
XmlPullParserException

lookuEntityReplacement

protected char[] lookuEntityReplacement(int entitNameLen)
                                 throws XmlPullParserException,
                                        java.io.IOException
Overrides:
lookuEntityReplacement in class MXParser
Throws:
XmlPullParserException
java.io.IOException

parseDocdecl

protected void parseDocdecl()
                     throws XmlPullParserException,
                            java.io.IOException
Overrides:
parseDocdecl in class MXParser
Throws:
XmlPullParserException
java.io.IOException

processExternalId

protected char processExternalId(char ch)
                          throws XmlPullParserException,
                                 java.io.IOException
Throws:
XmlPullParserException
java.io.IOException

processInternalSubset

protected void processInternalSubset()
                              throws XmlPullParserException,
                                     java.io.IOException
Throws:
XmlPullParserException
java.io.IOException

processPEReference

protected void processPEReference()
                           throws XmlPullParserException,
                                  java.io.IOException
Throws:
XmlPullParserException
java.io.IOException

processMarkupDecl

protected void processMarkupDecl(char ch)
                          throws XmlPullParserException,
                                 java.io.IOException
Throws:
XmlPullParserException
java.io.IOException

processElementDecl

protected void processElementDecl(char ch)
                           throws XmlPullParserException,
                                  java.io.IOException
Throws:
XmlPullParserException
java.io.IOException

processAttlistDecl

protected void processAttlistDecl(char ch)
                           throws XmlPullParserException,
                                  java.io.IOException
Throws:
XmlPullParserException
java.io.IOException

processEntityDecl

protected void processEntityDecl(char ch)
                          throws XmlPullParserException,
                                 java.io.IOException
Throws:
XmlPullParserException
java.io.IOException

processNotationDecl

protected void processNotationDecl(char ch)
                            throws XmlPullParserException,
                                   java.io.IOException
Throws:
XmlPullParserException
java.io.IOException

readName

protected char readName(char ch)
                 throws XmlPullParserException,
                        java.io.IOException
Throws:
XmlPullParserException
java.io.IOException


Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.