org.basex.build.file
Class MAB2Parser

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.file.MAB2Parser

public final class MAB2Parser
extends SingleParser

This class parses files in the MAB2 format and sends events to the specified database builder.

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
MAB2Parser(IO source, Prop pr)
          Constructor.
 
Method Summary
 void close()
          Closes the parser.
 void parse()
          Parses the current input.
 
Methods inherited from class org.basex.build.SingleParser
builder, parse
 
Methods inherited from class org.basex.build.Parser
emptyParser, info, singleParser, target, xmlParser
 
Methods inherited from class org.basex.core.Proc
abort, checkStop, databases, det, detail, listen, proc, prog, 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

MAB2Parser

public MAB2Parser(IO source,
                  Prop pr)
           throws java.io.IOException
Constructor.

Parameters:
source - source data
pr - database properties
Throws:
java.io.IOException - I/O exception
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

close

public void close()
           throws java.io.IOException
Description copied from class: Parser
Closes the parser.

Overrides:
close in class Parser
Throws:
java.io.IOException - I/O exception