public class XMLParser extends SingleParser
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.builder
Constructor and Description |
---|
XMLParser(IO source,
MainOptions opts)
Constructor.
|
XMLParser(IO source,
MainOptions opts,
boolean frag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the parser.
|
protected String |
det()
Returns short information on this process.
|
void |
parse()
Parses the current input.
|
double |
prog()
Returns a progress value (0 - 1).
|
parse
emptyParser, info, singleParser, target, xmlParser
abort, checkStop, databases, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
public XMLParser(IO source, MainOptions opts) throws IOException
source
- document sourceopts
- database optionsIOException
- I/O exceptionpublic XMLParser(IO source, MainOptions opts, boolean frag) throws IOException
source
- document sourceopts
- database optionsfrag
- allow parsing of document fragmentIOException
- I/O exceptionpublic final void parse() throws IOException
SingleParser
parse
in class SingleParser
IOException
- I/O exceptionpublic void close() throws IOException
Parser
close
in class Parser
IOException
- I/O exceptionprotected final String det()
Proc
Copyright © 2005–2015 BaseX Team. All rights reserved.