gnu.mail.providers.nntp
Class NNTPMessage
- MimePart, Part
public final class NNTPMessage
A JavaMail MIME message delegate for an NNTP article.
Enumeration | getAllHeaderLines() - Returns all the header-lines.
|
Enumeration | getAllHeaders() - Returns all the headers.
|
InputStream | getContentStream() - Returns the unencoded bytes of the content.
|
String[] | getHeader(String name) - Returns all the values for the specified header name.
|
String | getHeader(String name, String delimiter) - Returns all the values for the specified header name as a single
string, with headers separated by the given delimiter.
|
int | getLineCount() - Returns the number of lines in the content of this message, or -1 if
this number cannot be determined.
|
Enumeration | getMatchingHeaderLines(String[] names) - Returns all the header-lines with any of the given names.
|
Enumeration | getMatchingHeaders(String[] names) - Returns all the headers with any of the given names.
|
String | getMessageId()
|
Enumeration | getNonMatchingHeaderLines(String[] names) - Returns all the header-lines without any of the given names.
|
Enumeration | getNonMatchingHeaders(String[] names) - Returns all the headers without any of the given names.
|
int | getSize() - Returns the size of the content of this message in bytes, or -1 if the
size cannot be determined.
|
void | saveChanges() - Saves any changes to this message.
|
void | setFlags(Flags flag, boolean set) - Sets the flags for this message.
|
addFrom , addHeader , addHeaderLine , addRecipients , addRecipients , createInternetHeaders , getAllHeaderLines , getAllHeaders , getAllRecipients , getContent , getContentID , getContentLanguage , getContentMD5 , getContentStream , getContentType , getDataHandler , getDescription , getDisposition , getEncoding , getFileName , getFlags , getFrom , getHeader , getHeader , getInputStream , getLineCount , getMatchingHeaderLines , getMatchingHeaders , getMessageID , getNonMatchingHeaderLines , getNonMatchingHeaders , getRawInputStream , getReceivedDate , getRecipients , getReplyTo , getSender , getSentDate , getSize , getSubject , isMimeType , isSet , parse , removeHeader , reply , saveChanges , setContent , setContent , setContentID , setContentLanguage , setContentMD5 , setDataHandler , setDescription , setDescription , setDisposition , setFileName , setFlags , setFrom , setFrom , setHeader , setRecipients , setRecipients , setReplyTo , setSender , setSentDate , setSubject , setSubject , setText , setText , updateHeaders , writeTo , writeTo |
addFrom , addRecipient , addRecipients , getAllRecipients , getFlags , getFolder , getFrom , getMessageNumber , getReceivedDate , getRecipients , getReplyTo , getSentDate , getSubject , isExpunged , isSet , match , reply , saveChanges , setExpunged , setFlag , setFlags , setFrom , setFrom , setMessageNumber , setRecipient , setRecipients , setReplyTo , setSentDate , setSubject |
getHeader
public String[] getHeader(String name)
throws MessagingException
Returns all the values for the specified header name.
Note that headers may be encoded as per RFC 2047 if they
contain non-US-ASCII characters: these should be decoded.
- getHeader in interface Part
- getHeader in interface MimeMessage
getHeader
public String getHeader(String name,
String delimiter)
throws MessagingException
Returns all the values for the specified header name as a single
string, with headers separated by the given delimiter.
If the delimiter is null
, only the first header is
returned.
- getHeader in interface MimePart
- getHeader in interface MimeMessage
name
- the header namedelimiter
- the delimiter
getLineCount
public int getLineCount()
throws MessagingException
Returns the number of lines in the content of this message, or -1 if
this number cannot be determined.
Note that this number may not be an exact measure, but if not -1, it
will be suitable for display to the user.
- getLineCount in interface Part
- getLineCount in interface MimeMessage
getMessageId
public String getMessageId()
getSize
public int getSize()
throws MessagingException
Returns the size of the content of this message in bytes, or -1 if the
size cannot be determined.
Note that this number may not be an exact measure, but if not -1, it
will be suitable for display to the user.
- getSize in interface Part
- getSize in interface MimeMessage
saveChanges
public void saveChanges()
throws MessagingException
Saves any changes to this message.
Header fields in the message are updated appropriately to be consistent
with the message contents.
- saveChanges in interface MimeMessage
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved