org.basex.build
Class DirParser

java.lang.Object
  extended by org.basex.core.Proc
      extended by org.basex.build.Parser
          extended by org.basex.build.DirParser

public final class DirParser
extends Parser

This class recursively scans files and directories and parses all relevant files.

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

Field Summary
 
Fields inherited from class org.basex.build.Parser
atts, nsp, prop, src
 
Fields inherited from class org.basex.core.Proc
listen, updating
 
Constructor Summary
DirParser(IO source, Prop pr, IOFile path)
          Constructor.
 
Method Summary
 void close()
          Closes the parser.
 java.lang.String det()
          Returns short information on this process.
 java.lang.String info()
          Returns parser information.
 void parse(Builder build)
          Parses all nodes and sends events to the specified builder.
 double prog()
          Returns a progress value (0 - 1).
 
Methods inherited from class org.basex.build.Parser
emptyParser, 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

DirParser

public DirParser(IO source,
                 Prop pr,
                 IOFile path)
Constructor.

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

info

public java.lang.String info()
Description copied from class: Parser
Returns parser information.

Overrides:
info in class Parser
Returns:
info string

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

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