|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.archive.ArchiveIndex
public class 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 boolean |
dirty
|
private java.util.Hashtable |
index
|
| Constructor Summary | |
|---|---|
ArchiveIndex(ArchiveManager archiveManager)
Instantiate a new ArchiveIndex |
|
| Method Summary | |
|---|---|
void |
addIndex(java.lang.String key,
java.lang.String value)
Add a new item to the index |
java.util.Hashtable |
getIndex()
|
java.lang.String |
getValue(java.lang.String key)
Get the value for the given key |
boolean |
isDirty()
Check wether this Index has changed since it has been loaded from the File. |
void |
removeIndex(java.lang.Object key)
Remove an item from the index |
void |
setDirty(boolean dirty)
Set wether this Index has changed since it has been loaded from the File and needs to be saved to the File again on shutdown. |
void |
syncFileName(ArchiveItem archiveItem)
Synchronise the filename for the archiv item with the index. |
java.lang.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 boolean dirty
private java.util.Hashtable index
| Constructor Detail |
|---|
public ArchiveIndex(ArchiveManager archiveManager)
archiveManager - The archiv manager| Method Detail |
|---|
public void addIndex(java.lang.String key,
java.lang.String value)
key - The feedurlvalue - The filename of the archive itempublic java.util.Hashtable getIndex()
public java.lang.String getValue(java.lang.String key)
key - Any existing feedurl of the index
public boolean isDirty()
public void removeIndex(java.lang.Object key)
key - The key identifier for the itempublic void setDirty(boolean dirty)
dirty - Set to TRUE if this Index has changed since it has been loaded
and requires to be saved to the File again, FALSE otherwise.public void syncFileName(ArchiveItem archiveItem)
archiveItem - An archive itempublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||