org.opensolaris.opengrok.analysis.archive
Class BZip2Analyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.opensolaris.opengrok.analysis.FileAnalyzer
org.opensolaris.opengrok.analysis.archive.BZip2Analyzer
public class BZip2Analyzer
- extends FileAnalyzer
Analyzes a BZip2 file
Created on September 22, 2005
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.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 |
BZip2Analyzer
protected BZip2Analyzer(FileAnalyzerFactory factory)
getGenre
public FileAnalyzer.Genre getGenre()
- Overrides:
getGenre
in class FileAnalyzer
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 store HTML cross-reference
- Throws:
java.io.IOException
- if an error occurs