public class FileNewsrc extends java.lang.Object implements Newsrc
| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
FileNewsrc(java.io.File file,
boolean debug)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected java.io.File file
protected java.util.List subs
protected java.util.List groups
protected java.util.Map lines
protected boolean dirty
protected boolean debug
public FileNewsrc(java.io.File file,
boolean debug)
file - the disk filedebug - for debugging information on stderrpublic void close()
Newsrcpublic java.util.Iterator list()
public boolean isSubscribed(java.lang.String newsgroup)
NewsrcisSubscribed in interface Newsrcpublic void setSubscribed(java.lang.String newsgroup,
boolean flag)
NewsrcsetSubscribed in interface Newsrcpublic boolean isSeen(java.lang.String newsgroup,
int article)
Newsrc© Copyright 2003 The Free Software Foundation, all rights reserved