public class NntpArticle extends NntpArticleHeader
MimeMessage,
Serialized Form| Constructor and Description |
|---|
NntpArticle()
Constructs a new
NntpArticle. |
NntpArticle(byte[] contents)
Constructs a new
NntpArticle from existing MIME content. |
NntpArticle(java.lang.String from,
java.lang.String newsgroups,
java.lang.String subject)
Constructs a new
NntpArticle. |
| Modifier and Type | Method and Description |
|---|---|
void |
setFrom(java.lang.String from)
Sets From header for this
NntpArticle. |
void |
setNewsgroups(java.lang.String newsgroups)
Sets Newsgroups header for this
NntpArticle. |
void |
setSubject(java.lang.String subject)
Sets Subject header for this
NntpArticle. |
getDate, getFrom, getID, getNewsgroups, getSubject, setDateaddHeader, addHeader, addPart, addReplaceHeader, addReplaceHeader, getBody, getBodyAsFile, getBodyData, getBoundary, getContentTransferEncoding, getContentType, getHeader, getHeaders, getHeaders, getHeaderValue, getMessage, getPart, getParts, getRawBodyData, removeHeader, removePart, removeParts, setBody, setBody, setBody, setBody, setBodyAsFile, setContentTypepublic NntpArticle()
NntpArticle.public NntpArticle(java.lang.String from,
java.lang.String newsgroups,
java.lang.String subject)
throws MimeException
NntpArticle. Article is constructed with
provided From, Newsgroups and Subject headers.from - the email address of the person responsible for this articlenewsgroups - a comma delimited list of newsgroupssubject - the subject of the articleMimeException - if a MIME related error occursMimeExceptionpublic NntpArticle(byte[] contents)
throws MimeException
NntpArticle from existing MIME content.contents - the contents of mime messageMimeException - if a MIME related error occursMimeExceptionpublic void setFrom(java.lang.String from)
throws MimeException
NntpArticle.setFrom in class NntpArticleHeaderfrom - the email address of the person responsible for this articleMimeException - if a MIME related error occursMimeExceptionpublic void setNewsgroups(java.lang.String newsgroups)
throws MimeException
NntpArticle.newsgroups - a comma delimited list of newsgroupsMimeException - if a MIME related error occursMimeExceptionpublic void setSubject(java.lang.String subject)
throws MimeException
NntpArticle.setSubject in class NntpArticleHeadersubject - the subject of the articleMimeException - if a MIME related error occursMimeExceptionCopyright © JSCAPE LLC. 1999-2021. All Rights Reserved