gnu.inet.nntp

Interface Newsrc

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(String newsgroup, int article)
Indicates whether an article is marked as seen in the specified newsgroup.
boolean
isSubscribed(String newsgroup)
Indicates whether a newsgroup is subscribed in this newsrc.
Iterator
list()
Returns an iterator over the names of the subscribed newsgroups.
void
setSeen(String newsgroup, int article, boolean seen)
Sets whether an article is marked as seen in the specified newsgroup.
void
setSubscribed(String newsgroup, boolean subs)
Sets whether a newsgroup is subscribed in this newsrc.

Method Details

close

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


isSeen

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


isSubscribed

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


list

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


setSeen

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


setSubscribed

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


© Copyright 2003 The Free Software Foundation, all rights reserved