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()
      Gets 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()
      Gets 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()
      Gets the number of the last article in the newsgroup.
      Returns:
      The number of the last article in the newsgroup.
    • getNewsgroup

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

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