org.apache.xerces.xni.parser
Interface XMLPullParserConfiguration
- XMLComponentManager, XMLParserConfiguration
public interface XMLPullParserConfiguration
Represents a parser configuration that can be used as the
configuration for a "pull" parser. A pull parser allows the
application to drive the parser instead of having document
information events "pushed" to the registered handlers.
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
.
$Id: XMLPullParserConfiguration.java,v 1.6 2004/02/24 23:15:56 mrglavas Exp $ 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 , getDTDContentModelHandler , getDTDHandler , getDocumentHandler , getEntityResolver , getErrorHandler , getFeature , getLocale , getProperty , parse , setDTDContentModelHandler , setDTDHandler , setDocumentHandler , setEntityResolver , setErrorHandler , setFeature , setLocale , setProperty |
cleanup
public 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. For example, close all opened streams.
parse
public boolean parse(boolean complete)
throws XNIException,
IOException
Parses the document in a pull parsing fashion.
complete
- True if the pull parser should parse the
remaining document completely.
- True if there is more document to parse.
XNIException
- Any XNI exception, possibly wrapping
another exception.
setInputSource
public void setInputSource(XMLInputSource inputSource)
throws XMLConfigurationException,
IOException
Sets the input source for the document to parse.
inputSource
- The document's input source.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.