Class NewsgroupInfo

java.lang.Object
org.apache.commons.net.nntp.NewsgroupInfo

public final class NewsgroupInfo extends Object
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 Details

  • Constructor Details

  • Method Details

    • getArticleCount

      Deprecated.
    • getArticleCountLong

      public long getArticleCountLong()
      Get 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.
    • getFirstArticle

      Deprecated.
    • getFirstArticleLong

      public long getFirstArticleLong()
      Get the number of the first article in the newsgroup.
      Returns:
      The number of the first article in the newsgroup.
    • getLastArticle

      Deprecated.
    • getLastArticleLong

      public long getLastArticleLong()
      Get the number of the last article in the newsgroup.
      Returns:
      The number of the last article in the newsgroup.
    • getNewsgroup

      public String getNewsgroup()
      Get the newsgroup name.
      Returns:
      The name of the newsgroup.
    • getPostingPermission

      public int getPostingPermission()
      Get the posting permission of the newsgroup. This will be one of the POSTING_PERMISSION constants.
      Returns:
      The posting permission status of the newsgroup.