org.basex.build.xml
Class SAXWrapper

java.lang.Object
  extended by org.basex.core.Proc
      extended by org.basex.build.Parser
          extended by org.basex.build.SingleParser
              extended by org.basex.build.xml.SAXWrapper

public final class SAXWrapper
extends SingleParser

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-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.build.SingleParser
builder
 
Fields inherited from class org.basex.build.Parser
atts, nsp, prop, src
 
Fields inherited from class org.basex.core.Proc
listen, updating
 
Constructor Summary
SAXWrapper(IO source, Prop pr)
          Constructor.
 
Method Summary
 java.lang.String det()
          Returns short information on this process.
 void parse()
          Parses the current input.
 double prog()
          Returns a progress value (0 - 1).
 
Methods inherited from class org.basex.build.SingleParser
builder, parse
 
Methods inherited from class org.basex.build.Parser
close, emptyParser, info, singleParser, target, xmlParser
 
Methods inherited from class org.basex.core.Proc
abort, checkStop, databases, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXWrapper

public SAXWrapper(IO source,
                  Prop pr)
Constructor.

Parameters:
source - sax source
pr - Properties
Method Detail

parse

public void parse()
           throws java.io.IOException
Description copied from class: SingleParser
Parses the current input.

Specified by:
parse in class SingleParser
Throws:
java.io.IOException - I/O exception

det

public java.lang.String det()
Description copied from class: Proc
Returns short information on this process.

Overrides:
det in class Proc
Returns:
header information

prog

public double prog()
Description copied from class: Proc
Returns a progress value (0 - 1). Can be overwritten to give more detailed information.

Overrides:
prog in class Proc
Returns:
header information