public class PlainAnalyzer extends TextAnalyzer
FileAnalyzer.Genre
Modifier and Type | Field and Description |
---|---|
protected char[] |
content |
protected Definitions |
defs |
protected int |
len |
ctags, project
Modifier | Constructor and Description |
---|---|
protected |
PlainAnalyzer(FileAnalyzerFactory factory)
Creates a new instance of PlainAnalyzer
|
Modifier and Type | Method and Description |
---|---|
void |
analyze(org.apache.lucene.document.Document doc,
java.io.Reader 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.
|
analyze
getFactory, getGenre, setCtags, setProject, writeXref
protected char[] content
protected int len
protected Definitions defs
protected PlainAnalyzer(FileAnalyzerFactory factory)
public void analyze(org.apache.lucene.document.Document doc, java.io.Reader in) throws java.io.IOException
analyze
in class TextAnalyzer
java.io.IOException
public org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
tokenStream
in class FileAnalyzer
public void writeXref(java.io.Writer out) throws java.io.IOException
writeXref
in class FileAnalyzer
out
- Writer to write HTML cross-referencejava.io.IOException
- if an error occurs