org.opensolaris.opengrok.analysis.archive
Class GZIPAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.opensolaris.opengrok.analysis.FileAnalyzer
org.opensolaris.opengrok.analysis.archive.GZIPAnalyzer
- All Implemented Interfaces:
- java.io.Closeable
public class GZIPAnalyzer
- extends FileAnalyzer
Analyzes GZip files
Created on September 22, 2005
Fields inherited from class org.apache.lucene.analysis.Analyzer |
overridesTokenStreamMethod |
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 |
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 |
GZIPAnalyzer
protected GZIPAnalyzer(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)
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