org.opensolaris.opengrok.analysis
Class TextAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.opensolaris.opengrok.analysis.FileAnalyzer
          extended by org.opensolaris.opengrok.analysis.TextAnalyzer
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
PlainAnalyzer, XMLAnalyzer

public abstract class TextAnalyzer
extends FileAnalyzer


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
ctags, project
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod
 
Constructor Summary
TextAnalyzer(FileAnalyzerFactory factory)
           
 
Method Summary
 void analyze(org.apache.lucene.document.Document doc, java.io.InputStream in)
           
protected abstract  void analyze(org.apache.lucene.document.Document doc, java.io.Reader reader)
           
 
Methods inherited from class org.opensolaris.opengrok.analysis.FileAnalyzer
getFactory, getGenre, setCtags, setProject, tokenStream, writeXref, writeXref
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAnalyzer

public TextAnalyzer(FileAnalyzerFactory factory)
Method Detail

analyze

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

analyze

protected abstract void analyze(org.apache.lucene.document.Document doc,
                                java.io.Reader reader)
                         throws java.io.IOException
Throws:
java.io.IOException