org.opensolaris.opengrok.analysis.document
Class TroffAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.opensolaris.opengrok.analysis.FileAnalyzer
          extended by org.opensolaris.opengrok.analysis.document.TroffAnalyzer

public class TroffAnalyzer
extends FileAnalyzer

Analyzes [tn]roff files Created on September 30, 2005


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opensolaris.opengrok.analysis.FileAnalyzer
FileAnalyzer.Genre
 
Field Summary
 
Fields inherited from class org.opensolaris.opengrok.analysis.FileAnalyzer
project
 
Constructor Summary
protected TroffAnalyzer(FileAnalyzerFactory factory)
          Creates a new instance of TroffAnalyzer
 
Method Summary
 void analyze(org.apache.lucene.document.Document doc, java.io.InputStream in)
           
 org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
           
 void writeXref(java.io.Writer out)
          Write a cross referenced HTML file.
 
Methods inherited from class org.opensolaris.opengrok.analysis.FileAnalyzer
getFactory, getGenre, writeXref
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TroffAnalyzer

protected TroffAnalyzer(FileAnalyzerFactory factory)
Creates a new instance of TroffAnalyzer

Method Detail

analyze

public void analyze(org.apache.lucene.document.Document doc,
                    java.io.InputStream in)
Overrides:
analyze in class FileAnalyzer

tokenStream

public org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName,
                                                          java.io.Reader reader)
Overrides:
tokenStream in class FileAnalyzer

writeXref

public void writeXref(java.io.Writer out)
               throws java.io.IOException
Write a cross referenced HTML file.

Overrides:
writeXref in class FileAnalyzer
Parameters:
out - Writer to write HTML cross-reference
Throws:
java.io.IOException - if an error occurs