public class FileNewsrc extends Object implements Newsrc
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug |
protected boolean |
dirty |
protected File |
file |
protected List |
groups |
protected Map |
lines |
protected List |
subs |
| Constructor and Description |
|---|
FileNewsrc(File file,
boolean debug)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 currently subscribed
newsgroups.
|
void |
setSeen(String newsgroup,
int article,
boolean flag)
Sets whether an article is marked as seen in the specified newsgroup.
|
void |
setSubscribed(String newsgroup,
boolean flag)
Sets whether a newsgroup is subscribed in this newsrc.
|
protected File file
protected List subs
protected List groups
protected Map lines
protected boolean dirty
protected boolean debug
public FileNewsrc(File file, boolean debug)
file - the disk filedebug - for debugging information on stderrpublic void close()
Newsrcpublic Iterator list()
public boolean isSubscribed(String newsgroup)
NewsrcisSubscribed in interface Newsrcpublic void setSubscribed(String newsgroup, boolean flag)
NewsrcsetSubscribed in interface Newsrcpublic boolean isSeen(String newsgroup, int article)
NewsrcCopyright © 2017. All rights reserved.