org.basex.build
Class SingleParser

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.build.Parser
          extended by org.basex.build.SingleParser
Direct Known Subclasses:
CSVParser, MAB2Parser, SAXWrapper, TextParser, XMLParser

public abstract class SingleParser
extends Parser

This class defines an abstract parser for single resources.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.build.Parser
src
 
Fields inherited from class org.basex.core.Progress
listen, updating
 
Method Summary
 SingleParser builder(Builder b)
          Sets the database builder.
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, item, singleParser, target, xmlParser
 
Methods inherited from class org.basex.core.Progress
checkStop, detail, listen, progress, startTimeout, stop, stopTimeout, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public final void parse(Builder build)
                 throws java.io.IOException
Description copied from class: Parser
Parses all nodes and sends events to the specified builder.

Specified by:
parse in class Parser
Parameters:
build - database builder
Throws:
java.io.IOException - I/O exception

parse

public abstract void parse()
                    throws java.io.IOException
Parses the current input.

Throws:
java.io.IOException - I/O exception

builder

public SingleParser builder(Builder b)
Sets the database builder.

Parameters:
b - builder instance
Returns:
self reference