|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openprivacy.reptile.data.htparser.HTParserStore
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).
Constructor Summary | |
HTParserStore()
|
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 |
Constructor Detail |
public HTParserStore()
Method Detail |
public void commit()
commit
in interface Persistable
public void init() throws ReptileException
init
in interface Persistable
ReptileException
public static HTParserStore getInstance()
public void addDescription(java.lang.String location, java.lang.String description)
public java.lang.String getDescription(java.lang.String location)
public boolean hasAttempted(java.lang.String location)
public void setAttempted(java.lang.String location)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |