com.johnmunsch.rss
Interface ItemStore
- All Known Implementing Classes:
- ListItemStore
- public interface ItemStore
An interface for the storage mechanism that holds the set of all known items.
This can be a temporary store that is just in memory, a longer term
solution that uses Java serialization to hold news items on disk between
sessions, or a long term solution that uses a JDBC database to store all of
the items found.
- Author:
- johnm
NONE
public static final int NONE
- See Also:
- Constant Field Values
CHANNEL_TITLE
public static final int CHANNEL_TITLE
- See Also:
- Constant Field Values
ITEM_TITLE
public static final int ITEM_TITLE
- See Also:
- Constant Field Values
ITEM_RETRIEVAL_DATE
public static final int ITEM_RETRIEVAL_DATE
- See Also:
- Constant Field Values
SCORE
public static final int SCORE
- See Also:
- Constant Field Values
VIEWED
public static final int VIEWED
- See Also:
- Constant Field Values
add
public boolean add(Item item)
add
public boolean add(java.util.Collection collection)
remove
public boolean remove(Item item)
remove
public boolean remove(java.util.Collection collection)
clear
public void clear()
iterator
public java.util.Iterator iterator()
size
public int size()
sort
public void sort(int _firstAttribute,
int _secondAttribute,
int _thirdAttribute)
addItemStoreListener
public void addItemStoreListener(ItemStoreListener l)
removeItemStoreListener
public void removeItemStoreListener(ItemStoreListener l)
load
public void load(java.io.File f)
store
public void store(java.io.File f)