|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.javamail.store.nntp.newsrc.NNTPNewsrcGroup
public class NNTPNewsrcGroup
Field Summary | |
---|---|
protected String |
name
|
protected RangeList |
ranges
|
protected boolean |
subscribed
|
Constructor Summary | |
---|---|
NNTPNewsrcGroup(NNTPNewsrc newsrc,
String name,
String newsrcRanges,
boolean subscribed)
Construct a .newsrc group item. |
Method Summary | |
---|---|
String |
getName()
Get the group name. |
boolean |
isArticleSeen(int article)
Test if an article has been seen yet. |
boolean |
isSubscribed()
Get the newsrc subscribed status for an article. |
void |
markArticleSeen(int article)
Mark an article as seen. |
void |
markArticleUnseen(int article)
Mark an article as unseen. |
static NNTPNewsrcGroup |
parse(NNTPNewsrc newsrc,
String line)
Construct a NNTPNewsrcGroup item associated with a given .newsrc database. |
void |
save(Writer out)
Save this group definition to a .newsrc file. |
void |
setSubscribed(boolean flag)
Set the subscription status for an article. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected boolean subscribed
protected RangeList ranges
Constructor Detail |
---|
public NNTPNewsrcGroup(NNTPNewsrc newsrc, String name, String newsrcRanges, boolean subscribed)
newsrc
- The owning newsrc database.name
- The group name.newsrcRanges
- The initial set of seen ranges for the group (may be null).subscribed
- The initial group subscription state.Method Detail |
---|
public static NNTPNewsrcGroup parse(NNTPNewsrc newsrc, String line)
newsrc
- The owning .newsrc database.line
- The .newsrc range entries in .newsrc format. These ranges are
parsed to create a set of seen flags.
public String getName()
public boolean isSubscribed()
public void setSubscribed(boolean flag)
flag
- The new subscription value.public boolean isArticleSeen(int article)
article
- The target article.
public void markArticleSeen(int article)
article
- The target article number.public void markArticleUnseen(int article)
article
- The target article number.public void save(Writer out) throws IOException
out
- The output writer to send the information to.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |