|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjavax.mail.Message
javax.mail.internet.MimeMessage
gnu.mail.providers.nntp.NNTPMessage
A JavaMail MIME message delegate for an NNTP article.
| Nested Class Summary |
|---|
| Nested classes inherited from class javax.mail.internet.MimeMessage |
|---|
MimeMessage.RecipientType |
| Field Summary |
|---|
| Fields inherited from class javax.mail.internet.MimeMessage |
|---|
content, contentStream, dh, flags, headers, modified, saved |
| Fields inherited from class javax.mail.Message |
|---|
expunged, folder, msgnum, session |
| Fields inherited from interface javax.mail.Part |
|---|
ATTACHMENT, INLINE |
| Method Summary | |
|---|---|
java.util.Enumeration |
getAllHeaderLines()
Returns all the header-lines. |
java.util.Enumeration |
getAllHeaders()
Returns all the headers. |
java.io.InputStream |
getContentStream()
Returns the unencoded bytes of the content. |
java.lang.String[] |
getHeader(java.lang.String name)
Returns all the values for the specified header name. |
java.lang.String |
getHeader(java.lang.String name,
java.lang.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. |
java.util.Enumeration |
getMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines with any of the given names. |
java.util.Enumeration |
getMatchingHeaders(java.lang.String[] names)
Returns all the headers with any of the given names. |
java.lang.String |
getMessageId()
|
java.util.Enumeration |
getNonMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines without any of the given names. |
java.util.Enumeration |
getNonMatchingHeaders(java.lang.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. |
| Methods inherited from class javax.mail.Message |
|---|
addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getMessageId()
public java.lang.String[] getHeader(java.lang.String name)
throws MessagingException
MimeMessage
getHeader in interface PartgetHeader in class MimeMessagename - the header name
MessagingException
public java.lang.String getHeader(java.lang.String name,
java.lang.String delimiter)
throws MessagingException
MimeMessagenull, only the first header is
returned.
getHeader in interface MimePartgetHeader in class MimeMessagename - the header namedelimiter - the delimiter
MessagingException
public java.util.Enumeration getAllHeaders()
throws MessagingException
MimeMessage
getAllHeaders in interface PartgetAllHeaders in class MimeMessageMessagingException
public java.util.Enumeration getMatchingHeaders(java.lang.String[] names)
throws MessagingException
MimeMessage
getMatchingHeaders in interface PartgetMatchingHeaders in class MimeMessageMessagingException
public java.util.Enumeration getNonMatchingHeaders(java.lang.String[] names)
throws MessagingException
MimeMessage
getNonMatchingHeaders in interface PartgetNonMatchingHeaders in class MimeMessageMessagingException
public java.util.Enumeration getAllHeaderLines()
throws MessagingException
MimeMessage
getAllHeaderLines in interface MimePartgetAllHeaderLines in class MimeMessageMessagingException
public java.util.Enumeration getMatchingHeaderLines(java.lang.String[] names)
throws MessagingException
MimeMessage
getMatchingHeaderLines in interface MimePartgetMatchingHeaderLines in class MimeMessageMessagingException
public java.util.Enumeration getNonMatchingHeaderLines(java.lang.String[] names)
throws MessagingException
MimeMessage
getNonMatchingHeaderLines in interface MimePartgetNonMatchingHeaderLines in class MimeMessageMessagingException
public int getSize()
throws MessagingException
MimeMessageNote 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 PartgetSize in class MimeMessageMessagingException
public int getLineCount()
throws MessagingException
MimeMessageNote 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 PartgetLineCount in class MimeMessageMessagingException
public java.io.InputStream getContentStream()
throws MessagingException
MimeMessage
getContentStream in class MimeMessageMessagingExceptionMimeBodyPart.getContentStream()
public void saveChanges()
throws MessagingException
MimeMessage
saveChanges in class MimeMessageMessagingException
public void setFlags(Flags flag,
boolean set)
throws MessagingException
MimeMessage
setFlags in class MimeMessageMessagingException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||