org.openprivacy.reptile.data.htparser
Class HTParserStore
java.lang.Object
|
+--org.openprivacy.reptile.data.htparser.HTParserStore
- All Implemented Interfaces:
- Persistable
- public class HTParserStore
- extends java.lang.Object
- implements Persistable
Keep around the results from the HTParser.
While the HTParser does provide a decent parsing mechanism it has no native
way to incorporate itself into Reptile int a way we can use. The
HTParserStore provide persistence and keeps track of URLs we have fetched (so
that we don't fetch them more than once).
- Version:
- $Id: HTParserStore.java,v 1.2 2001/07/23 22:03:59 burton Exp $
- Author:
- burtonator
|
Method Summary |
void |
addDescription(java.lang.String location,
java.lang.String description)
Add a new description... |
void |
commit()
|
java.lang.String |
getDescription(java.lang.String location)
Get a new description or "" if it doesn't exist. |
static HTParserStore |
getInstance()
Get an Instance of the HTParser |
boolean |
hasAttempted(java.lang.String location)
Return true if this URL has been fetched. |
void |
init()
|
void |
setAttempted(java.lang.String location)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTParserStore
public HTParserStore()
commit
public void commit()
- Specified by:
commit in interface Persistable
init
public void init()
throws ReptileException
- Specified by:
init in interface Persistable
getInstance
public static HTParserStore getInstance()
- Get an Instance of the HTParser
addDescription
public void addDescription(java.lang.String location,
java.lang.String description)
- Add a new description...
getDescription
public java.lang.String getDescription(java.lang.String location)
- Get a new description or "" if it doesn't exist.
hasAttempted
public boolean hasAttempted(java.lang.String location)
- Return true if this URL has been fetched.
setAttempted
public void setAttempted(java.lang.String location)