Class NewsgroupInfo

    • Field Detail

      • UNKNOWN_POSTING_PERMISSION

        public static final int UNKNOWN_POSTING_PERMISSION
        A 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:
        Constant Field Values
      • MODERATED_POSTING_PERMISSION

        public static final int MODERATED_POSTING_PERMISSION
        A constant indicating that a newsgroup is moderated.
        See Also:
        Constant Field Values
      • PERMITTED_POSTING_PERMISSION

        public static final int PERMITTED_POSTING_PERMISSION
        A constant indicating that a newsgroup is public and unmoderated.
        See Also:
        Constant Field Values
      • PROHIBITED_POSTING_PERMISSION

        public static final int PROHIBITED_POSTING_PERMISSION
        A constant indicating that a newsgroup is closed for general posting.
        See Also:
        Constant Field Values
      • newsgroup

        private java.lang.String newsgroup
      • estimatedArticleCount

        private long estimatedArticleCount
      • firstArticle

        private long firstArticle
      • lastArticle

        private long lastArticle
      • postingPermission

        private int postingPermission
    • Constructor Detail

      • NewsgroupInfo

        public NewsgroupInfo()
    • Method Detail

      • getArticleCount

        @Deprecated
        public int 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
        public int 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
        public int 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 java.lang.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.
      • setArticleCount

        void setArticleCount​(long count)
      • setFirstArticle

        void setFirstArticle​(long first)
      • setLastArticle

        void setLastArticle​(long last)
      • setNewsgroup

        void setNewsgroup​(java.lang.String newsgroup)
      • setPostingPermission

        void setPostingPermission​(int permission)