gnu.inet.nntp
Class FileNewsrc
- Newsrc
public class FileNewsrc
extends java.lang.Object
A .newsrc configuration on a filesystem.
void | close()
|
boolean | isSeen(String newsgroup, int article)
|
boolean | isSubscribed(String newsgroup)
|
Iterator | list()- Returns an iterator over the names of the currently subscribed
newsgroups.
|
void | setSeen(String newsgroup, int article, boolean flag)
|
void | setSubscribed(String newsgroup, boolean flag)
|
debug
protected boolean debug
dirty
protected boolean dirty
groups
protected List groups
FileNewsrc
public FileNewsrc(File file,
boolean debug) Constructor.
file - the disk filedebug - for debugging information on stderr
isSeen
public boolean isSeen(String newsgroup,
int article)- isSeen in interface Newsrc
list
public Iterator list()
Returns an iterator over the names of the currently subscribed
newsgroups.
- list in interface Newsrc
setSeen
public void setSeen(String newsgroup,
int article,
boolean flag)- setSeen in interface Newsrc
setSubscribed
public void setSubscribed(String newsgroup,
boolean flag)- setSubscribed in interface Newsrc