public final class NewsgroupInfo
extends java.lang.Object
selectNewsgroup
,
listNewsgroups
, and
listNewNewsgroups
respectively.
NNTPClient
Modifier and Type | Field and Description |
---|---|
static int |
MODERATED_POSTING_PERMISSION
A constant indicating that a newsgroup is moderated.
|
static int |
PERMITTED_POSTING_PERMISSION
A constant indicating that a newsgroup is public and unmoderated.
|
static int |
PROHIBITED_POSTING_PERMISSION
A constant indicating that a newsgroup is closed for general posting.
|
static int |
UNKNOWN_POSTING_PERMISSION
A constant indicating that the posting permission of a newsgroup is
unknown.
|
Constructor and Description |
---|
NewsgroupInfo() |
Modifier and Type | Method and Description |
---|---|
int |
getArticleCount()
Get the estimated number of articles in the newsgroup.
|
int |
getFirstArticle()
Get the number of the first article in the newsgroup.
|
int |
getLastArticle()
Get the number of the last article in the newsgroup.
|
java.lang.String |
getNewsgroup()
Get the newsgroup name.
|
int |
getPostingPermission()
Get the posting permission of the newsgroup.
|
public static final int UNKNOWN_POSTING_PERMISSION
public static final int MODERATED_POSTING_PERMISSION
public static final int PERMITTED_POSTING_PERMISSION
public static final int PROHIBITED_POSTING_PERMISSION
public java.lang.String getNewsgroup()
public int getArticleCount()
public int getFirstArticle()
public int getLastArticle()
public int getPostingPermission()
POSTING_PERMISSION
constants.