Class DirSearch

java.lang.Object
  |
  +--DirSearch

public class DirSearch
extends java.lang.Object

DirSearch is a class that reads the filelist, find a match between the expression and a word in the filelist, and store all the files that contain that word


Constructor Summary
DirSearch()
           
 
Method Summary
 void FiletoSearch(com.jaxo.regexp.RegularExpression pattern)
          FiletoSearch find a match between the expression and the words in wordlist
 java.lang.String GetRelevantFiles()
          GetRelevantFiles return one relevant file at a time until it returned all
static void main(java.lang.String[] args)
           
 void Print()
          Print print out the word in the linkedlist, used for debugging
 void ReadCache(java.io.BufferedReader filereader, java.io.BufferedReader wordreader)
          ReadCache read the filelist and wordlist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirSearch

public DirSearch()
Method Detail

ReadCache

public void ReadCache(java.io.BufferedReader filereader,
                      java.io.BufferedReader wordreader)
ReadCache read the filelist and wordlist

Print

public void Print()
Print print out the word in the linkedlist, used for debugging

FiletoSearch

public void FiletoSearch(com.jaxo.regexp.RegularExpression pattern)
FiletoSearch find a match between the expression and the words in wordlist

GetRelevantFiles

public java.lang.String GetRelevantFiles()
GetRelevantFiles return one relevant file at a time until it returned all

main

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