FileDocCategorySizeDatePackage
NNTPArticle.javaAPI DocApache James 2.3.12688Fri Jan 12 12:56:24 GMT 2007org.apache.james.nntpserver.repository

NNTPArticle

public interface NNTPArticle
Contract exposed by a NewsGroup Article

Fields Summary
Constructors Summary
Methods Summary
public intgetArticleNumber()
Gets the article number for this article.

return
the article number

public NNTPGroupgetGroup()
Gets the group containing this article.

return
the group

public java.lang.StringgetHeader(java.lang.String headerName)
Gets the header with the specified headerName. Returns null if the header doesn't exist.

param
headerName the name of the header being retrieved.

public java.lang.StringgetUniqueID()
Gets the unique message id for this article.

return
the message id

public voidwriteArticle(java.io.OutputStream wrt)
Writes the whole article to a writer.

param
wrt the OutputStream to which the article is written.

public voidwriteBody(java.io.OutputStream wrt)
Writes the article body to a writer.

param
wrt the OutputStream to which the article is written.

public voidwriteHead(java.io.OutputStream wrt)
Writes the article headers to a writer.

param
wrt the OutputStream to which the article is written.

public voidwriteOverview(java.io.OutputStream wrt)
Writes the article overview to a writer.

param
wrt the OutputStream to which the article is written.