|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NNTPGroup
Contract exposed by a NewsGroup
Method Summary | |
---|---|
NNTPArticle |
addArticle(java.io.InputStream newsStream)
Adds an article to the group based on the data in the stream. |
NNTPArticle |
getArticle(int number)
Gets the article with the specified article number. |
java.util.Iterator |
getArticles()
Retrieves an iterator of all articles in this newsgroup |
java.util.Iterator |
getArticlesSince(java.util.Date dt)
Retrieves an iterator of articles in this newsgroup that were posted on or after the specified date. |
java.lang.String |
getDescription()
Gets the description of the newsgroup |
int |
getFirstArticleNumber()
Gets the first article number in the group. |
int |
getLastArticleNumber()
Gets the last article number in the group. |
java.lang.String |
getListFormat()
Retrieves the group information in a format consistent with a LIST or LIST ACTIVE return line |
java.lang.String |
getListNewsgroupsFormat()
Retrieves the group information in a format consistent with a LIST NEWSGROUPS return line |
java.lang.String |
getName()
Gets the name of the newsgroup |
int |
getNumberOfArticles()
Gets the number of articles in the group. |
boolean |
isPostAllowed()
Returns whether posting is allowed to this newsgroup |
Method Detail |
---|
java.lang.String getName()
java.lang.String getDescription()
boolean isPostAllowed()
int getNumberOfArticles()
int getFirstArticleNumber()
int getLastArticleNumber()
NNTPArticle getArticle(int number)
number
- the article number
java.util.Iterator getArticlesSince(java.util.Date dt)
dt
- the Date that acts as a lower bound for the list of
articles
java.util.Iterator getArticles()
java.lang.String getListFormat()
java.lang.String getListNewsgroupsFormat()
NNTPArticle addArticle(java.io.InputStream newsStream) throws java.io.IOException
newsStream
- the InputStream containing the article data
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |