public final class MaildirMessage
extends gnu.mail.providers.ReadOnlyMessage
MimeMessage.RecipientTypecontent, contentStream, dh, flags, headers, modified, savedATTACHMENT, INLINE| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.util.Enumeration |
getAllHeaderLines()
Returns all the header-lines.
|
java.util.Enumeration |
getAllHeaders()
Returns all the headers.
|
protected java.io.InputStream |
getContentStream()
Returns the unencoded bytes of the content.
|
javax.activation.DataHandler |
getDataHandler()
Returns a data handler for accessing this message's 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.
|
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.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.
|
protected void |
setExpunged(boolean expunged)
Allow MaildirFolder access to set the expunged flag after expunge.
|
void |
setFlags(Flags flag,
boolean set)
Set the specified flags(reflected in the
info field). |
addHeader, addHeaderLine, removeHeader, saveChanges, setContent, setContent, setHeaderaddFrom, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentType, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getInputStream, getLineCount, getMessageID, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, reply, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFrom, setFrom, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageId, writeTo, writeToaddRecipient, getFolder, getMessageNumber, isExpunged, match, setFlag, setMessageNumber, setRecipientprotected void setExpunged(boolean expunged)
setExpunged in class Messagepublic void setFlags(Flags flag, boolean set) throws MessagingException
info field).setFlags in class gnu.mail.providers.ReadOnlyMessageflag - the flags to be setset - the value to be setIllegalWriteException - if the underlying implementation
does not support modification of existing valuesMessagingExceptionpublic java.lang.String[] getHeader(java.lang.String name)
throws MessagingException
MimeMessagegetHeader in interface PartgetHeader in class MimeMessagename - the header nameMessagingExceptionpublic 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 delimiterMessagingExceptionpublic java.util.Enumeration getAllHeaders()
throws MessagingException
MimeMessagegetAllHeaders in interface PartgetAllHeaders in class MimeMessageMessagingExceptionpublic java.util.Enumeration getAllHeaderLines()
throws MessagingException
MimeMessagegetAllHeaderLines in interface MimePartgetAllHeaderLines in class MimeMessageMessagingExceptionpublic java.util.Enumeration getMatchingHeaders(java.lang.String[] names)
throws MessagingException
MimeMessagegetMatchingHeaders in interface PartgetMatchingHeaders in class MimeMessagenames - the header names to matchMessagingExceptionpublic java.util.Enumeration getMatchingHeaderLines(java.lang.String[] names)
throws MessagingException
MimeMessagegetMatchingHeaderLines in interface MimePartgetMatchingHeaderLines in class MimeMessageMessagingExceptionpublic java.util.Enumeration getNonMatchingHeaders(java.lang.String[] names)
throws MessagingException
MimeMessagegetNonMatchingHeaders in interface PartgetNonMatchingHeaders in class MimeMessagenames - the header names to ignoreMessagingExceptionpublic java.util.Enumeration getNonMatchingHeaderLines(java.lang.String[] names)
throws MessagingException
MimeMessagegetNonMatchingHeaderLines in interface MimePartgetNonMatchingHeaderLines in class MimeMessageMessagingExceptionpublic javax.activation.DataHandler getDataHandler()
throws MessagingException
MimeMessagegetDataHandler in interface PartgetDataHandler in class MimeMessageMessagingExceptionprotected java.io.InputStream getContentStream()
throws MessagingException
MimeMessagegetContentStream in class MimeMessageMessagingExceptionMimeBodyPart.getContentStream()public boolean equals(java.lang.Object other)
equals in class java.lang.Object© Copyright 2003, 2004 The Free Software Foundation, All rights reserved