com.johnmunsch.rss
Interface ChannelStore

All Known Implementing Classes:
ListChannelStore

public interface ChannelStore

An interface that defines the characteristics that all channel stores need to have. They may be implemented using serialization, JDBC, or something completely different but they need all of these methods so they can all be treated uniformly. A later version of the channel store may do away with functions like add, remove, etc. and simply require that all inheritors implement the functions of the AbstractList interface. That is a superset of what is available here.

Author:
johnm

Method Summary
 boolean add(Channel channel)
           
 boolean add(java.util.Collection collection)
           
 void addChannelStoreListener(ChannelStoreListener l)
           
 void clear()
           
 java.util.Iterator iterator()
           
 void load(java.io.File f)
           
 boolean remove(Channel channel)
           
 boolean remove(java.util.Collection collection)
           
 void removeChannelStoreListener(ChannelStoreListener l)
           
 java.util.List retrieve(boolean updateChannels)
           
 int size()
           
 void store(java.io.File f)
           
 

Method Detail

add

public boolean add(Channel channel)

add

public boolean add(java.util.Collection collection)

remove

public boolean remove(Channel channel)

remove

public boolean remove(java.util.Collection collection)

clear

public void clear()

iterator

public java.util.Iterator iterator()

size

public int size()

retrieve

public java.util.List retrieve(boolean updateChannels)

addChannelStoreListener

public void addChannelStoreListener(ChannelStoreListener l)

removeChannelStoreListener

public void removeChannelStoreListener(ChannelStoreListener l)

load

public void load(java.io.File f)

store

public void store(java.io.File f)