|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfable.utility.RSSSearcher
public class RSSSearcher
Class for RSS Searcher
An RSS Searcher will search all articles for keyword/article text.
Each RSS Searcher will occupy memory in a temporary directory.
No two RSS searchers can occupy the same temporary directory. Attempting to
create an RSS Searcher in an already occupied temporary directory will remove
the old RSS Searcher in that directory.
Constructor Summary | |
---|---|
RSSSearcher(java.util.List<FableComponent> ct,
java.lang.String tempDir)
Creates a new instance of an RSSSearcher for a given list of articles |
Method Summary | |
---|---|
void |
close()
Closes the search. |
java.util.List<FableComponent> |
searchArticle(java.lang.String keyString)
Returns a List of FableComponent(s) where the keyString matches the entire article (summary + html content), or the keywords or authors |
java.util.List<FableComponent> |
searchKey(java.lang.String keyString)
Returns a List of FableComponent(s) where the keyString matches the keywords or authors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSSSearcher(java.util.List<FableComponent> ct, java.lang.String tempDir) throws java.io.IOException
ct
- List of articles to searchtempDir
- the temporary directory this searcher should occupy
java.io.IOException
- if Searcher could not be created in the directoryMethod Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
- if the directory the search is based on cannot be closed.public java.util.List<FableComponent> searchKey(java.lang.String keyString)
keyString
- The Key String to search for
public java.util.List<FableComponent> searchArticle(java.lang.String keyString)
keyString
- The string to search for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |