|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contract exposed by a NewsGroup
Method Summary | |
NNTPArticle |
addArticle(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. |
Iterator |
getArticles()
Retrieves an iterator of all articles in this newsgroup |
Iterator |
getArticlesSince(Date dt)
Retrieves an iterator of articles in this newsgroup that were posted on or after the specified date. |
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. |
String |
getListFormat()
Retrieves the group information in a format consistent with a LIST or LIST ACTIVE return line |
String |
getListNewsgroupsFormat()
Retrieves the group information in a format consistent with a LIST NEWSGROUPS return line |
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 |
public String getName()
public String getDescription()
public boolean isPostAllowed()
public int getNumberOfArticles()
public int getFirstArticleNumber()
public int getLastArticleNumber()
public NNTPArticle getArticle(int number)
number
- the article number
public Iterator getArticlesSince(Date dt)
dt
- the Date that acts as a lower bound for the list of
articles
public Iterator getArticles()
public String getListFormat()
public String getListNewsgroupsFormat()
public NNTPArticle addArticle(InputStream newsStream) throws IOException
newsStream
- the InputStream containing the article data
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |