ir.vsr
Class FileDocument

java.lang.Object
  |
  +--ir.vsr.Document
        |
        +--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.
 
Methods inherited from class ir.vsr.Document
getNextCandidateToken, hashMapPosVector, hashMapVector, hasMoreTokens, loadStopWords, nextToken, numberOfTokens, positionOrderedTokenVector, 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.