public final class NewsgroupInfo extends Object
selectNewsgroup , listNewsgroups
, and listNewNewsgroups respectively.NNTPClient| Modifier and Type | Field and Description |
|---|---|
(package private) static NewsgroupInfo[] |
EMPTY_ARRAY
The empty array of this type.
|
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()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getArticleCount()
Deprecated.
|
long |
getArticleCountLong()
Gets the estimated number of articles in the newsgroup.
|
int |
getFirstArticle()
Deprecated.
|
long |
getFirstArticleLong()
Gets the number of the first article in the newsgroup.
|
int |
getLastArticle()
Deprecated.
|
long |
getLastArticleLong()
Gets the number of the last article in the newsgroup.
|
String |
getNewsgroup()
Gets the newsgroup name.
|
int |
getPostingPermission()
Gets the posting permission of the newsgroup.
|
(package private) void |
setArticleCount(long count) |
(package private) void |
setFirstArticle(long first) |
(package private) void |
setLastArticle(long last) |
(package private) void |
setNewsgroup(String newsgroup) |
(package private) void |
setPostingPermission(int permission) |
static final NewsgroupInfo[] EMPTY_ARRAY
public static final int MODERATED_POSTING_PERMISSION
public static final int PERMITTED_POSTING_PERMISSION
public static final int PROHIBITED_POSTING_PERMISSION
public static final int UNKNOWN_POSTING_PERMISSION
@Deprecated public int getArticleCount()
public long getArticleCountLong()
@Deprecated public int getFirstArticle()
public long getFirstArticleLong()
@Deprecated public int getLastArticle()
public long getLastArticleLong()
public String getNewsgroup()
public int getPostingPermission()
POSTING_PERMISSION constants.void setArticleCount(long count)
void setFirstArticle(long first)
void setLastArticle(long last)
void setNewsgroup(String newsgroup)
void setPostingPermission(int permission)