|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.UrnCache
This class contains a systemwide URN cache that persists file URNs (hashes) across sessions. Modified by Gordon Mohr (2002/02/19): Added URN storage, calculation, caching Repackaged by Greg Bildson (2002/02/19): Moved to dedicated class.
FileDesc
,
URN
Method Summary | |
void |
addUrns(java.io.File file,
java.util.Set urns)
Add URNs for the specified FileDesc instance to URN_MAP. |
java.util.Set |
getUrns(java.io.File file)
Find any URNs remembered from a previous session for the specified File instance. |
static UrnCache |
instance()
Returns the UrnCache instance. |
void |
persistCache()
Write cache so that we only have to calculate them once. |
void |
removeUrns(java.io.File f)
Removes any URNs that associated with a specified file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static UrnCache instance()
public java.util.Set getUrns(java.io.File file)
file
- the File instance to look up URNs for
public void removeUrns(java.io.File f)
public void addUrns(java.io.File file, java.util.Set urns)
public void persistCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |