Package org.basex.build.xml
Class SAXWrapper
java.lang.Object
org.basex.core.jobs.Job
org.basex.build.Parser
org.basex.build.SingleParser
org.basex.build.xml.SAXWrapper
This class parses an XML document with Java's internal SAX parser. Note that
not all files cannot be parsed with the default parser; for example, the
DBLP documents contain too many entities and cause an out of memory error.
The internal
XMLParser can be used as alternative.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.build.SingleParser
builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns detailed progress information.voidparse()Parses the current input.doubleReturns a progress value (0 - 1).Methods inherited from class org.basex.build.SingleParser
parseMethods inherited from class org.basex.build.Parser
close, emptyParser, info, singleParser, target, xmlParser
-
Constructor Details
-
SAXWrapper
Constructor.- Parameters:
source- input sourceopts- database options
-
-
Method Details
-
parse
Description copied from class:SingleParserParses the current input.- Specified by:
parsein classSingleParser- 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 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
-