Package org.basex.build
Class SingleParser
- java.lang.Object
-
- org.basex.core.jobs.Job
-
- org.basex.build.Parser
-
- org.basex.build.SingleParser
-
- Direct Known Subclasses:
CsvParser
,SAXWrapper
,XMLParser
public abstract class SingleParser extends Parser
This class defines an abstract parser for single resources.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleParser(IO source, MainOptions options)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
parse()
Parses the current input.void
parse(Builder build)
Parses all nodes and sends events to the specified builder.-
Methods inherited from class org.basex.build.Parser
close, emptyParser, info, singleParser, source, target, xmlParser
-
-
-
-
Field Detail
-
builder
protected Builder builder
Builder reference.
-
-
Constructor Detail
-
SingleParser
protected SingleParser(IO source, MainOptions options)
Constructor.- Parameters:
source
- input sourceoptions
- main options
-
-
Method Detail
-
parse
public final void parse(Builder build) throws IOException
Description copied from class:Parser
Parses all nodes and sends events to the specified builder.- Overrides:
parse
in classParser
- Parameters:
build
- database builder- Throws:
IOException
- I/O exception
-
parse
protected abstract void parse() throws IOException
Parses the current input.- Throws:
IOException
- I/O exception
-
-