All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Nnrpd.NewsDbArticle

java.lang.Object
   |
   +----Acme.Nnrpd.NewsDbArticle

public class NewsDbArticle
extends Object
Netnews database article.

This represents a news database article.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o NewsDbArticle(long, String)
Constructor.

Method Index

 o getBodyStart()
Get the start position of the article body.
 o getDbStamp()
Get the database stamp.
 o getHeader(String)
Get a header field.
 o getHeader(String, String)
Extract the named header from the text of a netnews article.
 o getHeadLen()
Get the length of the article header.
 o getText()
Get the article text.

Constructors

 o NewsDbArticle
 public NewsDbArticle(long dbStamp,
                      String text) throws NewsDbException
Constructor.

Throws: NewsDbException
if something goes wrong

Methods

 o getDbStamp
 protected long getDbStamp()
Get the database stamp. This is used internally when dealing with multiple news databases, to make sure that an obect returned from one is not passed to another.

 o getText
 public String getText()
Get the article text.

 o getHeadLen
 public int getHeadLen()
Get the length of the article header.

 o getBodyStart
 public int getBodyStart()
Get the start position of the article body.

 o getHeader
 public String getHeader(String name)
Get a header field.

 o getHeader
 public static String getHeader(String text,
                                String name)
Extract the named header from the text of a netnews article. Does a case-insensitive search for "name:" Stops searching at the end of the headers. Returns null if the header was not found.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs