Package org.basex.build.xml
Class XMLParser
java.lang.Object
org.basex.core.jobs.Job
org.basex.build.Parser
org.basex.build.SingleParser
org.basex.build.xml.XMLParser
- Direct Known Subclasses:
HtmlParser,JsonParser
This class parses the tokens that are delivered by the
XMLScanner and
sends them to the specified database builder. This class is a more
tolerant alternative to Java's internal SAX parser, which is used by the
SAXWrapper class.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.build.SingleParser
builder -
Constructor Summary
ConstructorsConstructorDescriptionXMLParser(IO source, MainOptions opts) Constructor.XMLParser(IO source, MainOptions opts, boolean frag) Constructor. -
Method Summary
Methods inherited from class org.basex.build.SingleParser
parseMethods inherited from class org.basex.build.Parser
emptyParser, info, singleParser, target, xmlParser
-
Constructor Details
-
XMLParser
Constructor.- Parameters:
source- document sourceopts- database options- Throws:
IOException- I/O exception
-
XMLParser
Constructor.- Parameters:
source- document sourceopts- database optionsfrag- allow parsing of document fragment- Throws:
IOException- I/O exception
-
-
Method Details
-
parse
Description copied from class:SingleParserParses the current input.- Specified by:
parsein classSingleParser- Throws:
IOException- I/O exception
-
close
Description copied from class:ParserCloses the parser.- Overrides:
closein classParser- Throws:
IOException- I/O exception
-
detailedInfo
Description copied from class:JobReturns detailed progress information. Can be overwritten to give more specific feedback.- Overrides:
detailedInfoin classJob- Returns:
- header information
-
progressInfo
public final double progressInfo()Description copied from class:JobReturns a progress value (0 - 1). Can be overwritten to give more specific feedback.- Overrides:
progressInfoin classJob- Returns:
- header information
-