gnu.inet.nntp
Interface Newsrc

All Known Implementing Classes:
FileNewsrc

public interface Newsrc

Interface for a .newsrc configuration.

Author:
Chris Burdess

Method Summary
 void close()
          Closes the configuration, potentially saving any changes.
 boolean isSeen(java.lang.String newsgroup, int article)
          Indicates whether an article is marked as seen in the specified newsgroup.
 boolean isSubscribed(java.lang.String newsgroup)
          Indicates whether a newsgroup is subscribed in this newsrc.
 java.util.Iterator list()
          Returns an iterator over the names of the subscribed newsgroups.
 void setSeen(java.lang.String newsgroup, int article, boolean seen)
          Sets whether an article is marked as seen in the specified newsgroup.
 void setSubscribed(java.lang.String newsgroup, boolean subs)
          Sets whether a newsgroup is subscribed in this newsrc.
 

Method Detail

list

java.util.Iterator list()
Returns an iterator over the names of the subscribed newsgroups. Each item returned is a String.


isSubscribed

boolean isSubscribed(java.lang.String newsgroup)
Indicates whether a newsgroup is subscribed in this newsrc.


setSubscribed

void setSubscribed(java.lang.String newsgroup,
                   boolean subs)
Sets whether a newsgroup is subscribed in this newsrc.


isSeen

boolean isSeen(java.lang.String newsgroup,
               int article)
Indicates whether an article is marked as seen in the specified newsgroup.


setSeen

void setSeen(java.lang.String newsgroup,
             int article,
             boolean seen)
Sets whether an article is marked as seen in the specified newsgroup.


close

void close()
Closes the configuration, potentially saving any changes.



© Copyright 2003 The Free Software Foundation, all rights reserved