public interface XMLPullParserConfiguration extends XMLParserConfiguration
 A pull parser using this type of configuration first calls
 the setInputSource method. After the input
 source is set, the pull parser repeatedly calls the
 parse(boolean):boolean method. This method 
 returns a value of true if there is more to parse in the
 document.
 
 Calling the parse(XMLInputSource) is equivalent
 to setting the input source and calling the 
 parse(boolean):boolean method with a "complete" 
 value of true.
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanup()If the application decides to terminate parsing before the xml document
 is fully parsed, the application should call this method to free any
 resource allocated during parsing. | 
| boolean | parse(boolean complete)Parses the document in a pull parsing fashion. | 
| void | setInputSource(XMLInputSource inputSource)Sets the input source for the document to parse. | 
addRecognizedFeatures, addRecognizedProperties, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getLocale, getProperty, parse, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLocale, setPropertyvoid setInputSource(XMLInputSource inputSource) throws XMLConfigurationException, java.io.IOException
inputSource - The document's input source.XMLConfigurationException - Thrown if there is a 
                        configuration error when initializing the
                        parser.java.io.IOException - Thrown on I/O error.parse(boolean)boolean parse(boolean complete)
              throws XNIException,
                     java.io.IOException
complete - True if the pull parser should parse the
                 remaining document completely.XNIException - Any XNI exception, possibly wrapping 
                         another exception.java.io.IOException - An IO exception from the parser, possibly
                         from a byte stream or character stream
                         supplied by the parser.setInputSource(org.apache.xerces.xni.parser.XMLInputSource)void cleanup()
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.