org.opensolaris.opengrok.analysis.archive
Class BZip2Analyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.opensolaris.opengrok.analysis.FileAnalyzer
          extended by org.opensolaris.opengrok.analysis.archive.BZip2Analyzer
All Implemented Interfaces:
java.io.Closeable

public class BZip2Analyzer
extends FileAnalyzer

Analyzes a BZip2 file Created on September 22, 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
ctags, project
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod
 
Constructor Summary
protected BZip2Analyzer(FileAnalyzerFactory factory)
           
 
Method Summary
 void analyze(org.apache.lucene.document.Document doc, java.io.InputStream in)
           
 FileAnalyzer.Genre getGenre()
           
 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, setCtags, setProject, 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

BZip2Analyzer

protected BZip2Analyzer(FileAnalyzerFactory factory)
Method Detail

getGenre

public FileAnalyzer.Genre getGenre()
Overrides:
getGenre in class FileAnalyzer

analyze

public 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

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 store HTML cross-reference
Throws:
java.io.IOException - if an error occurs