public class Searcher
extends java.lang.Object
Constructor and Description |
---|
Searcher() |
Modifier and Type | Method and Description |
---|---|
void |
addSearchListener(SearchListener listener)
Adds a searchListener to inform about events
|
void |
close() |
void |
prepareLength()
Determines the length of the file in rows for the length field Also
determines the number of rows that count as 1 percent of all rows
|
void |
setFile(java.io.File file)
Sets the searcher to the entries file
|
void |
startSearching(java.lang.String searchstring,
boolean or)
Starts to search for the passed string(s)
|
public void setFile(java.io.File file)
file
- public void close()
public void addSearchListener(SearchListener listener)
listener
- public void prepareLength() throws java.io.IOException
java.io.IOException
public void startSearching(java.lang.String searchstring, boolean or) throws java.io.IOException
searchstring
- java.io.IOException