FileDocCategorySizeDatePackage
NNTPGroup.javaAPI DocApache James 2.3.13700Fri Jan 12 12:56:24 GMT 2007org.apache.james.nntpserver.repository

NNTPGroup

public interface NNTPGroup
Contract exposed by a NewsGroup

Fields Summary
Constructors Summary
Methods Summary
public NNTPArticleaddArticle(java.io.InputStream newsStream)
Adds an article to the group based on the data in the stream.

param
newsStream the InputStream containing the article data
return
the newly created article

public NNTPArticlegetArticle(int number)
Gets the article with the specified article number.

param
number the article number
return
the article

public java.util.IteratorgetArticles()
Retrieves an iterator of all articles in this newsgroup

return
the article iterator

public java.util.IteratorgetArticlesSince(java.util.Date dt)
Retrieves an iterator of articles in this newsgroup that were posted on or after the specified date.

param
dt the Date that acts as a lower bound for the list of articles
return
the article iterator

public java.lang.StringgetDescription()
Gets the description of the newsgroup

return
the newsgroup description

public intgetFirstArticleNumber()
Gets the first article number in the group.

return
the first article number in the group.

public intgetLastArticleNumber()
Gets the last article number in the group.

return
the last article number in the group.

public java.lang.StringgetListFormat()
Retrieves the group information in a format consistent with a LIST or LIST ACTIVE return line

return
the properly formatted string

public java.lang.StringgetListNewsgroupsFormat()
Retrieves the group information in a format consistent with a LIST NEWSGROUPS return line

return
the properly formatted string

public java.lang.StringgetName()
Gets the name of the newsgroup

return
the newsgroup name

public intgetNumberOfArticles()
Gets the number of articles in the group.

return
the number of articles in the group.

public booleanisPostAllowed()
Returns whether posting is allowed to this newsgroup

return
whether posting is allowed to this newsgroup