Class net.nntp.NewsgroupInfo
All Packages    This Package    Previous    Next

Class net.nntp.NewsgroupInfo

java.lang.Object
   |
   +----net.nntp.NewsgroupInfo

public class NewsgroupInfo
extends Object
This class manages information related to the current status of newsgroups.
Version:
1.5, 12 Dec 1994
Author:
Jonathan Payne, James Gosling
See Also:
NntpClient

firstArticle
Number of the first and last articles in the group
lastArticle
name
This newsgroup's name in network form (eg rec.pets)

NewsgroupInfo(String, int, int)

reload(NntpClient)
Reload news in the group using nntp.getGroup(this.name)
toString()
convert the information to a printable string of the form:

NewsgroupInfo[name=name[firstArticle,lastArticle]

name
  public String name
This newsgroup's name in network form (eg rec.pets)
firstArticle
  public int firstArticle
Number of the first and last articles in the group
lastArticle
  public int lastArticle

NewsgroupInfo
  public NewsgroupInfo(String name,
                       int start,
                       int end)

toString
  public String toString()
convert the information to a printable string of the form:

NewsgroupInfo[name=name[firstArticle,lastArticle]

Overrides:
toString in class Object

reload

  public void reload(NntpClient nntp)
Reload news in the group using nntp.getGroup(this.name)


All Packages    This Package    Previous    Next