wt.tools.tokensearch
Class TokenHunter

java.lang.Object
  extended bywt.tools.tokensearch.TokenHunter

public class TokenHunter
extends Object


Field Summary
protected  boolean DEBUG
           
protected  boolean DEBUGWW
           
protected  String errMessage
           
protected  boolean errOccured
           
protected  Vector excludes
           
protected  EndsIn file_filter
           
protected  String firstO
           
protected  int hitCount
           
protected  Vector hits
           
protected  File start_dir
           
protected  boolean WW
           
 
Constructor Summary
TokenHunter()
           
TokenHunter(String search_for, String dir, String filter)
           
TokenHunter(String search_for, String dir, String filter, String excs)
           
 
Method Summary
 boolean anyErrors()
           
 int checkExcludes(String aline)
           
 void closeStream(BufferedReader br)
           
 boolean doGrep(File gf, String sf)
           
 void doSetUp(String dir, String filter)
           
 void doSetUp(String dir, String filter, String excs)
           
 boolean foundToken(String line, String sf, int j, Vector fi)
           
 String getError()
           
 int getHits()
           
static void main(String[] argv)
           
 String moreLines(BufferedReader br)
           
 BufferedReader openStream(File f)
           
 void printOutput()
           
 void setUp(String dir, String filter)
           
static void usage()
           
 void walkDir(File f, String search, EndsIn ei)
           
 boolean wholeWordCheck(String line, String sf, int j)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start_dir

protected File start_dir

file_filter

protected EndsIn file_filter

firstO

protected String firstO

DEBUG

protected boolean DEBUG

DEBUGWW

protected boolean DEBUGWW

WW

protected boolean WW

hitCount

protected int hitCount

errOccured

protected boolean errOccured

errMessage

protected String errMessage

hits

protected Vector hits

excludes

protected Vector excludes
Constructor Detail

TokenHunter

public TokenHunter()

TokenHunter

public TokenHunter(String search_for,
                   String dir,
                   String filter)

TokenHunter

public TokenHunter(String search_for,
                   String dir,
                   String filter,
                   String excs)
Method Detail

anyErrors

public boolean anyErrors()

getError

public String getError()

getHits

public int getHits()

setUp

public void setUp(String dir,
                  String filter)

doSetUp

public void doSetUp(String dir,
                    String filter)

doSetUp

public void doSetUp(String dir,
                    String filter,
                    String excs)

printOutput

public void printOutput()

walkDir

public void walkDir(File f,
                    String search,
                    EndsIn ei)

openStream

public BufferedReader openStream(File f)

closeStream

public void closeStream(BufferedReader br)

moreLines

public String moreLines(BufferedReader br)

checkExcludes

public int checkExcludes(String aline)

wholeWordCheck

public boolean wholeWordCheck(String line,
                              String sf,
                              int j)

doGrep

public boolean doGrep(File gf,
                      String sf)

foundToken

public boolean foundToken(String line,
                          String sf,
                          int j,
                          Vector fi)

usage

public static void usage()

main

public static void main(String[] argv)