org.cdlib.xtf.textIndexer
Class TextIndexSource

Object
  extended by IndexSource
      extended by XMLIndexSource
          extended by TextIndexSource

public class TextIndexSource
extends XMLIndexSource

Transforms an HTML file to a single-record XML file.

Author:
Martin Haye

Field Summary
private  File textFile
          Source of text data
 
Constructor Summary
TextIndexSource(File textFile, String key, Templates[] preFilters, Templates displayStyle, StructuredStore lazyStore)
          Constructor -- initializes all the fields
 
Method Summary
protected  InputSource filterInput()
          Transform the text file to XML data
 
Methods inherited from class XMLIndexSource
displayStyle, key, nextRecord, normalize, path, preFilters, removeDoctypeDecl, totalSize
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textFile

private File textFile
Source of text data

Constructor Detail

TextIndexSource

public TextIndexSource(File textFile,
                       String key,
                       Templates[] preFilters,
                       Templates displayStyle,
                       StructuredStore lazyStore)
Constructor -- initializes all the fields

Method Detail

filterInput

protected InputSource filterInput()
                           throws IOException
Transform the text file to XML data

Overrides:
filterInput in class XMLIndexSource
Throws:
IOException