|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.archive.ArchiveIndex
The index of the archive contains of a simple Hashtable that holds keys and values: - Key: Unique feedurl - Value: Unique filename Any feedurl from the index points to the file that stores the archive item of the feedurl.
Field Summary | |
private ArchiveManager |
archiveManager
|
private Hashtable |
index
|
Constructor Summary | |
ArchiveIndex(ArchiveManager archiveManager)
Instantiate a new ArchiveIndex |
Method Summary | |
void |
addIndex(String key,
String value)
Add a new item to the index |
Enumeration |
getKeys()
|
String |
getValue(String key)
Get the value for the given key |
void |
removeIndex(Object key)
Remove an item from the index |
void |
syncFileName(ArchiveItem archiveItem)
Synchronise the filename for the archiv item with the index. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ArchiveManager archiveManager
private Hashtable index
Constructor Detail |
public ArchiveIndex(ArchiveManager archiveManager)
archiveManager
- The archiv managerMethod Detail |
public void addIndex(String key, String value)
key
- The feedurlvalue
- The filename of the archive itempublic Enumeration getKeys()
public String getValue(String key)
key
- Any existing feedurl of the index
public void removeIndex(Object key)
key
- The key identifier for the itempublic void syncFileName(ArchiveItem archiveItem)
archiveItem
- An archive itempublic String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |