|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.inet.nntp.FileNewsrc
public class FileNewsrc
A .newsrc configuration on a filesystem.
Field Summary | |
---|---|
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 Summary | |
---|---|
FileNewsrc(java.io.File file,
boolean debug)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public FileNewsrc(java.io.File file, boolean debug)
file
- the disk filedebug
- for debugging information on stderrMethod Detail |
---|
public void close()
Newsrc
close
in interface Newsrc
public java.util.Iterator list()
list
in interface Newsrc
public boolean isSubscribed(java.lang.String newsgroup)
Newsrc
isSubscribed
in interface Newsrc
public void setSubscribed(java.lang.String newsgroup, boolean flag)
Newsrc
setSubscribed
in interface Newsrc
public boolean isSeen(java.lang.String newsgroup, int article)
Newsrc
isSeen
in interface Newsrc
public void setSeen(java.lang.String newsgroup, int article, boolean flag)
Newsrc
setSeen
in interface Newsrc
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |