public class SearchIndexer
extends java.lang.Object
Constructor and Description |
---|
SearchIndexer(java.io.File searchFile) |
SearchIndexer(java.io.File searchFile,
boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
void |
addSearchIndexerListener(SearchIndexerListener listener) |
protected void |
despatchSearchIndexerEvent(SearchIndexerEvent event) |
java.io.File |
getSearchFile() |
SearchResults |
getSearchResults() |
protected void |
indexFile(java.io.File file) |
protected void |
indexFile(java.io.File file,
java.io.FilenameFilter filter)
Creates an index file from the source which can be used by the search function.
|
boolean |
isCaseSensitive() |
protected void |
parseFile(java.io.File file) |
protected void |
parseLine(java.io.File file,
java.lang.String line) |
void |
removeSearchIndexerListener(SearchIndexerListener listener) |
void |
setCaseSensitive(boolean caseSensitive) |
void |
setSearchFile(java.io.File searchFile) |
public SearchIndexer(java.io.File searchFile, boolean caseSensitive)
public SearchIndexer(java.io.File searchFile)
public void addSearchIndexerListener(SearchIndexerListener listener)
public void removeSearchIndexerListener(SearchIndexerListener listener)
protected void despatchSearchIndexerEvent(SearchIndexerEvent event)
protected void indexFile(java.io.File file, java.io.FilenameFilter filter) throws java.io.IOException
java.io.IOException
protected void indexFile(java.io.File file) throws java.io.IOException
java.io.IOException
protected void parseFile(java.io.File file) throws java.io.IOException
java.io.IOException
protected void parseLine(java.io.File file, java.lang.String line)
public SearchResults getSearchResults()
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
public java.io.File getSearchFile()
public void setSearchFile(java.io.File searchFile)