com.croftsoft.core.net.news
Class Newsgroup

java.lang.Object
  extended by com.croftsoft.core.net.news.Newsgroup
All Implemented Interfaces:
Serializable

public final class Newsgroup
extends Object
implements Serializable

Newsgroup metadata.

Since:
1997-05-11
Version:
2001-08-03
See Also:
Serialized Form
Author:
David Wallace Croft

Constructor Summary
Newsgroup(long estimated, long firstArticle, long lastArticle, String groupName)
           
 
Method Summary
 long getEstimated()
           
 long getFirstArticle()
           
 String getGroupName()
           
 long getLastArticle()
           
static Newsgroup parse(String groupCommandResponse)
          Parses the GROUP command resonse to get the newsgroup metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Newsgroup

public Newsgroup(long estimated,
                 long firstArticle,
                 long lastArticle,
                 String groupName)
Method Detail

parse

public static Newsgroup parse(String groupCommandResponse)
Parses the GROUP command resonse to get the newsgroup metadata.
 211 n f l s group selected
      (n = estimated number of articles in group,
      f = first article number in the group,
      l = last article number in the group,
      s = name of the group.)
 411 no such news group
 


getEstimated

public long getEstimated()

getFirstArticle

public long getFirstArticle()

getLastArticle

public long getLastArticle()

getGroupName

public String getGroupName()

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)