ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.oroinc.net.nntp.NewsgroupInfo

java.lang.Object
   |
   +----com.oroinc.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.

Copyright © 1997 Original Reusable Objects, Inc. All rights reserved.

See Also:
NNTPClient

Variable Index

 o MODERATED_POSTING_PERMISSION
A constant indicating that a newsgroup is moderated.
 o PERMITTED_POSTING_PERMISSION
A constant indicating that a newsgroup is public and unmoderated.
 o PROHIBITED_POSTING_PERMISSION
A constant indicating that a newsgroup is closed for general posting.
 o UNKNOWN_POSTING_PERMISSION
A constant indicating that the posting permission of a newsgroup is unknown.

Constructor Index

 o NewsgroupInfo()

Method Index

 o getArticleCount()
Get the estimated number of articles in the newsgroup.
 o getFirstArticle()
Get the number of the first article in the newsgroup.
 o getLastArticle()
Get the number of the last article in the newsgroup.
 o getNewsgroup()
Get the newsgroup name.
 o getPostingPermission()
Get the posting permission of the newsgroup.

Variables

 o 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 willhave an UNKNOWN_POSTING_PERMISSION.

 o MODERATED_POSTING_PERMISSION
 public static final int MODERATED_POSTING_PERMISSION
A constant indicating that a newsgroup is moderated.

 o PERMITTED_POSTING_PERMISSION
 public static final int PERMITTED_POSTING_PERMISSION
A constant indicating that a newsgroup is public and unmoderated.

 o PROHIBITED_POSTING_PERMISSION
 public static final int PROHIBITED_POSTING_PERMISSION
A constant indicating that a newsgroup is closed for general posting.

Constructors

 o NewsgroupInfo
 public NewsgroupInfo()

Methods

 o getNewsgroup
 public String getNewsgroup()
Get the newsgroup name.

Returns:
The name of the newsgroup.
 o getArticleCount
 public int getArticleCount()
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.
 o getFirstArticle
 public int getFirstArticle()
Get the number of the first article in the newsgroup.

Returns:
The number of the first article in the newsgroup.
 o getLastArticle
 public int getLastArticle()
Get the number of the last article in the newsgroup.

Returns:
The number of the last article in the newsgroup.
 o 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.

ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index