| org.apache.xerces.xni.parser.XMLPullParserConfiguration
All known Subclasses: org.apache.xerces.parsers.XML11Configuration, org.apache.xerces.parsers.NonValidatingConfiguration, org.apache.xerces.parsers.XML11NonValidatingConfiguration, org.apache.xerces.impl.xs.opti.SchemaParsingConfig, org.apache.xerces.parsers.DTDConfiguration, org.apache.xerces.parsers.XML11DTDConfiguration,
XMLPullParserConfiguration | public interface XMLPullParserConfiguration extends XMLParserConfiguration(Code) | | 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 .
author: Andy Clark, IBM version: $Id: XMLPullParserConfiguration.java 447244 2006-09-18 05:20:40Z mrglavas $ |
Method Summary | |
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. | public boolean | parse(boolean complete) Parses the document in a pull parsing fashion.
Parameters: complete - True if the pull parser should parse theremaining document completely. | public void | setInputSource(XMLInputSource inputSource) Sets the input source for the document to parse. |
cleanup | public void cleanup()(Code) | | 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(Code) | | Parses the document in a pull parsing fashion.
Parameters: complete - True if the pull parser should parse theremaining document completely. True if there is more document to parse. exception: XNIException - Any XNI exception, possibly wrapping another exception. exception: IOException - An IO exception from the parser, possiblyfrom a byte stream or character streamsupplied by the parser. See Also: XMLPullParserConfiguration.setInputSource |
|
|