com.croftsoft.core.net.news
Class Newsgroup
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Newsgroup
public Newsgroup(long estimated,
long firstArticle,
long lastArticle,
String groupName)
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 Core Javadoc (2008-09-28 20:58:02)