Package org.apache.commons.net.nntp
Class NewsgroupInfo
java.lang.Object
org.apache.commons.net.nntp.NewsgroupInfo
NewsgroupInfo stores information pertaining to a newsgroup returned by the NNTP GROUP, LIST, and NEWGROUPS commands, implemented by
 
selectNewsgroup  , listNewsgroups
  , and listNewNewsgroups  respectively.- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intA constant indicating that a newsgroup is moderated.static final intA constant indicating that a newsgroup is public and unmoderated.static final intA constant indicating that a newsgroup is closed for general posting.static final intA constant indicating that the posting permission of a newsgroup is unknown.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintDeprecated.longGets the estimated number of articles in the newsgroup.intDeprecated.longGets the number of the first article in the newsgroup.intDeprecated.longGets the number of the last article in the newsgroup.Gets the newsgroup name.intGets the posting permission of the newsgroup.
- 
Field Details- 
UNKNOWN_POSTING_PERMISSIONA constant indicating that the posting permission of a newsgroup is unknown. For example, the NNTP GROUP command does not return posting information, so NewsgroupInfo instances obtained from that command will have an UNKNOWN_POSTING_PERMISSION.- See Also:
 
- 
MODERATED_POSTING_PERMISSIONA constant indicating that a newsgroup is moderated.- See Also:
 
- 
PERMITTED_POSTING_PERMISSIONA constant indicating that a newsgroup is public and unmoderated.- See Also:
 
- 
PROHIBITED_POSTING_PERMISSIONA constant indicating that a newsgroup is closed for general posting.- See Also:
 
 
- 
- 
Constructor Details- 
NewsgroupInfopublic NewsgroupInfo()
 
- 
- 
Method Details- 
getArticleCountDeprecated.
- 
getArticleCountLongGets the estimated number of articles in the newsgroup. The accuracy of this value will depend on the server implementation.- Returns:
- The estimated number of articles in the newsgroup.
 
- 
getFirstArticleDeprecated.
- 
getFirstArticleLongGets the number of the first article in the newsgroup.- Returns:
- The number of the first article in the newsgroup.
 
- 
getLastArticleDeprecated.
- 
getLastArticleLongGets the number of the last article in the newsgroup.- Returns:
- The number of the last article in the newsgroup.
 
- 
getNewsgroupGets the newsgroup name.- Returns:
- The name of the newsgroup.
 
- 
getPostingPermissionGets the posting permission of the newsgroup. This will be one of thePOSTING_PERMISSIONconstants.- Returns:
- The posting permission status of the newsgroup.
 
 
-