ir.vsr
Class FileDocument

java.lang.Object
  extended by ir.vsr.Document
      extended by ir.vsr.FileDocument
Direct Known Subclasses:
HTMLFileDocument, TextFileDocument

public abstract class FileDocument
extends Document

A Document stored as a file.


Field Summary
 java.io.File file
          The name of the file
protected  java.io.BufferedReader reader
          The I/O reader for accessing the file
 
Fields inherited from class ir.vsr.Document
nextToken, numStopWords, numTokens, stem, stemmer, stopWords, stopWordsFile
 
Constructor Summary
FileDocument(java.io.File file, boolean stem)
          Creates a FileDocument and initializes its name and reader.
 
Method Summary
 
Methods inherited from class ir.vsr.Document
allLetters, getNextCandidateToken, hashMapVector, hasMoreTokens, loadStopWords, nextToken, numberOfTokens, prepareNextToken, printVector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public java.io.File file
The name of the file


reader

protected java.io.BufferedReader reader
The I/O reader for accessing the file

Constructor Detail

FileDocument

public FileDocument(java.io.File file,
                    boolean stem)
Creates a FileDocument and initializes its name and reader.