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

Field Summary
static int CHANNEL_TITLE
           
static int ITEM_RETRIEVAL_DATE
           
static int ITEM_TITLE
           
static int NONE
           
static int SCORE
           
static int VIEWED
           
 
Method Summary
 boolean add(java.util.Collection collection)
           
 boolean add(Item item)
           
 void addItemStoreListener(ItemStoreListener l)
           
 void clear()
           
 java.util.Iterator iterator()
           
 void load(java.io.File f)
           
 boolean remove(java.util.Collection collection)
           
 boolean remove(Item item)
           
 void removeItemStoreListener(ItemStoreListener l)
           
 int size()
           
 void sort(int _firstAttribute, int _secondAttribute, int _thirdAttribute)
           
 void store(java.io.File f)
           
 

Field Detail

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
Method Detail

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)