gnu.inet.nntp
Class FileNewsrc
- Newsrc
public class FileNewsrc
extends java.lang.Object
A .newsrc configuration on a filesystem.
Version:
- Chris Burdess
protected boolean | debug
|
protected boolean | dirty
|
protected java.io.File | file
|
protected java.util.List | groups
|
protected java.util.Map | lines
|
protected java.util.List | subs
|
FileNewsrc(java.io.File file, boolean debug) - Constructor.
|
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 currently subscribed
newsgroups.
|
void | setSeen(java.lang.String newsgroup, int article, boolean flag) - Sets whether an article is marked as seen in the specified newsgroup.
|
void | setSubscribed(java.lang.String newsgroup, boolean flag) - Sets whether a newsgroup is subscribed in this newsrc.
|
debug
protected boolean debug
dirty
protected boolean dirty
file
protected java.io.File file
groups
protected java.util.List groups
lines
protected java.util.Map lines
subs
protected java.util.List subs
FileNewsrc
public FileNewsrc(java.io.File file,
boolean debug)
Constructor.
file
- the disk filedebug
- for debugging information on stderr
close
public void close()
Closes the configuration, potentially saving any changes.
- close in interface Newsrc
isSeen
public boolean isSeen(java.lang.String newsgroup,
int article)
Indicates whether an article is marked as seen in the specified newsgroup.
- isSeen in interface Newsrc
isSubscribed
public boolean isSubscribed(java.lang.String newsgroup)
Indicates whether a newsgroup is subscribed in this newsrc.
- isSubscribed in interface Newsrc
list
public java.util.Iterator list()
Returns an iterator over the names of the currently subscribed
newsgroups.
- list in interface Newsrc
setSeen
public void setSeen(java.lang.String newsgroup,
int article,
boolean flag)
Sets whether an article is marked as seen in the specified newsgroup.
- setSeen in interface Newsrc
setSubscribed
public void setSubscribed(java.lang.String newsgroup,
boolean flag)
Sets whether a newsgroup is subscribed in this newsrc.
- setSubscribed in interface Newsrc
© Copyright 2003 The Free Software Foundation,
all rights reserved