org.basex.build.xml
Class XMLParser

java.lang.Object
  extended by org.basex.build.Parser
      extended by org.basex.build.xml.XMLParser

public final class XMLParser
extends Parser

This class parses the tokens that are delivered by the XMLScanner and sends them to the specified database builder.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.build.Parser
file
 
Constructor Summary
XMLParser(BufferInput in)
          Constructor.
XMLParser(java.lang.String fn)
          Constructor.
 
Method Summary
 void parse(Builder build)
          Parses all nodes and sends events to the specified builder.
 double percent()
          Returns a value from 0 to 1, representing the current progress.
 java.lang.String title()
          Returns a compact description of the current progress.
 java.lang.String toString()
          Returns detailed progress information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser(BufferInput in)
Constructor.

Parameters:
in - input stream

XMLParser

public XMLParser(java.lang.String fn)
          throws java.io.IOException
Constructor.

Parameters:
fn - input file
Throws:
java.io.IOException - I/O Exception
Method Detail

parse

public 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 - event listener.
Throws:
java.io.IOException - I/O exception

percent

public double percent()
Description copied from class: Parser
Returns a value from 0 to 1, representing the current progress.

Specified by:
percent in class Parser
Returns:
progress information

title

public java.lang.String title()
Description copied from class: Parser
Returns a compact description of the current progress.

Specified by:
title in class Parser
Returns:
progress information

toString

public java.lang.String toString()
Description copied from class: Parser
Returns detailed progress information.

Specified by:
toString in class Parser
Returns:
position info