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.
-
NewsDbArticle(long, String)
- Constructor.
-
getBodyStart()
- Get the start position of the article body.
-
getDbStamp()
- Get the database stamp.
-
getHeader(String)
- Get a header field.
-
getHeader(String, String)
- Extract the named header from the text of a netnews article.
-
getHeadLen()
- Get the length of the article header.
-
getText()
- Get the article text.
NewsDbArticle
public NewsDbArticle(long dbStamp,
String text) throws NewsDbException
- Constructor.
- Throws: NewsDbException
- if something goes wrong
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.
getText
public String getText()
- Get the article text.
getHeadLen
public int getHeadLen()
- Get the length of the article header.
getBodyStart
public int getBodyStart()
- Get the start position of the article body.
getHeader
public String getHeader(String name)
- Get a header field.
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