com.sun.labs.minion.document
Class MarkUpAnalyzer_txt

java.lang.Object
  extended by com.sun.labs.minion.document.MarkUpAnalyzer
      extended by com.sun.labs.minion.document.MarkUpAnalyzer_txt

public class MarkUpAnalyzer_txt
extends MarkUpAnalyzer


Field Summary
 
Fields inherited from class com.sun.labs.minion.document.MarkUpAnalyzer
r
 
Constructor Summary
MarkUpAnalyzer_txt(java.io.Reader r, int pos, java.lang.String key)
          Makes an analyzer for data from a file.
MarkUpAnalyzer_txt(java.lang.String s, java.lang.String key)
          Makes an analyzer for data from a file.
 
Method Summary
 void analyze(Stage stage)
          Analyzes the document.
 
Methods inherited from class com.sun.labs.minion.document.MarkUpAnalyzer
getMarkUpAnalyzer, getMarkUpAnalyzer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkUpAnalyzer_txt

public MarkUpAnalyzer_txt(java.io.Reader r,
                          int pos,
                          java.lang.String key)
Makes an analyzer for data from a file.


MarkUpAnalyzer_txt

public MarkUpAnalyzer_txt(java.lang.String s,
                          java.lang.String key)
Makes an analyzer for data from a file. This is not really useful, but there you go.

Method Detail

analyze

public void analyze(Stage stage)
             throws java.io.IOException
Analyzes the document. Mostly reads in chunks and tokenizes them.

Specified by:
analyze in class MarkUpAnalyzer
Parameters:
stage - the head of the pipeline that will process the text of the document
Throws:
java.io.IOException - If there is any error reading.