de.unidu.is.retrieval
Class Indexer

java.lang.Object
  extended byde.unidu.is.retrieval.Indexer

public class Indexer
extends java.lang.Object

A class which can be called for indexing an XML collection.

Since:
20-Jan-2005
Version:
$Revision: 1.9 $, $Date: 2005/02/25 14:33:29 $
Author:
Henrik Nottelmann

Field Summary
protected  java.util.List dirs
          Directories to be scanned.
protected  java.lang.String filter
          RegEx for files to be indexed.
protected  IR ir
          The IR object.
protected  java.io.PrintWriter out
          If not null, this is the writer for the logfile.
protected  boolean quiet
          If true, not output is given to STDOUT and STDERR.
 
Constructor Summary
Indexer(java.lang.String[] args)
          Creates a new object.
 
Method Summary
 void close()
          Closes the log file.
static void main(java.lang.String[] args)
           
 void start()
          Starts the indexing part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ir

protected IR ir
The IR object.


quiet

protected boolean quiet
If true, not output is given to STDOUT and STDERR.


out

protected java.io.PrintWriter out
If not null, this is the writer for the logfile.


dirs

protected java.util.List dirs
Directories to be scanned.


filter

protected java.lang.String filter
RegEx for files to be indexed.

Constructor Detail

Indexer

public Indexer(java.lang.String[] args)
        throws java.io.IOException
Creates a new object.

Parameters:
args - arguments
Throws:
java.io.IOException - if an error occurs
Method Detail

main

public static void main(java.lang.String[] args)

start

public void start()
           throws IndexException
Starts the indexing part.

Throws:
IndexException - if an exception occurs

close

public void close()
Closes the log file.