Package com.sun.mail.imap
Class IMAPNestedMessage
- java.lang.Object
 - 
- javax.mail.Message
 - 
- javax.mail.internet.MimeMessage
 - 
- com.sun.mail.imap.IMAPMessage
 - 
- com.sun.mail.imap.IMAPNestedMessage
 
 
 
 
 
- 
- All Implemented Interfaces:
 ReadableMime,MimePart,Part
public class IMAPNestedMessage extends IMAPMessage
This class implements a nested IMAP message 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.sun.mail.imap.IMAPMessage
IMAPMessage.FetchProfileCondition 
- 
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage
MimeMessage.RecipientType 
 - 
 
- 
Field Summary
- 
Fields inherited from interface javax.mail.Part
ATTACHMENT, INLINE 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSize()Get the message size.booleanisExpunged()Checks whether this message is expunged.voidsetFlags(Flags flag, boolean set)Set/Unset the given flags in this message.- 
Methods inherited from class com.sun.mail.imap.IMAPMessage
addFrom, addHeader, addHeaderLine, addRecipients, getAllHeaderLines, getAllHeaders, getContentID, getContentLanguage, getContentMD5, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInReplyTo, getItem, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getMimeStream, getModSeq, getNonMatchingHeaderLines, getNonMatchingHeaders, getPeek, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSizeLong, getSubject, invalidateHeaders, isSet, removeHeader, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDisposition, setFileName, setFrom, setHeader, setPeek, setRecipients, setReplyTo, setSender, setSentDate, setSubject, writeTo 
- 
Methods inherited from class javax.mail.internet.MimeMessage
addRecipients, getAllRecipients, getContent, getInputStream, getRawInputStream, isMimeType, reply, reply, saveChanges, setContent, setContent, setDescription, setFrom, setFrom, setRecipients, setSubject, setText, setText, setText, writeTo 
- 
Methods inherited from class javax.mail.Message
addRecipient, getFolder, getMessageNumber, getSession, match, setFlag, setRecipient 
 - 
 
 - 
 
- 
- 
Method Detail
- 
isExpunged
public boolean isExpunged()
Description copied from class:MessageChecks whether this message is expunged. All other methods exceptgetMessageNumber()are invalid on an expunged Message object.Messages that are expunged due to an explict
expunge()request on the containing Folder are removed from the Folder immediately. Messages that are externally expunged by another source are marked "expunged" and return true for the isExpunged() method, but they are not removed from the Folder until an explicitexpunge()is done on the Folder.See the description of
expunge()for more details on expunge handling.- Overrides:
 isExpungedin classMessage- Returns:
 - true if the message is expunged
 - See Also:
 Folder.expunge()
 
- 
getSize
public int getSize() throws MessagingExceptionDescription copied from class:IMAPMessageGet the message size.Note that this returns RFC822.SIZE. That is, it's the size of the whole message, header and body included. Note also that if the size of the message is greater than Integer.MAX_VALUE (2GB), this method returns Integer.MAX_VALUE.
- Specified by:
 getSizein interfacePart- Overrides:
 getSizein classIMAPMessage- Returns:
 - size of content in bytes
 - Throws:
 MessagingException- for failures
 
- 
setFlags
public void setFlags(Flags flag, boolean set) throws MessagingException
Description copied from class:IMAPMessageSet/Unset the given flags in this message.- Overrides:
 setFlagsin classIMAPMessage- Parameters:
 flag- Flags object containing the flags to be setset- the value to be set- Throws:
 IllegalWriteException- if the underlying implementation does not support modificationMessagingException- for other failures- See Also:
 MessageChangedEvent
 
 - 
 
 -