com.sun.mail.imap
类 IMAPNestedMessage

java.lang.Object
  继承者 javax.mail.Message
      继承者 javax.mail.internet.MimeMessage
          继承者 com.sun.mail.imap.IMAPMessage
              继承者 com.sun.mail.imap.IMAPNestedMessage
所有已实现的接口:
MimePart, Part

public class IMAPNestedMessage
extends IMAPMessage

This class implements a nested IMAP message

作者:
John Mani

嵌套类摘要
 
从类 javax.mail.internet.MimeMessage 继承的嵌套类/接口
MimeMessage.RecipientType
 
字段摘要
 
从类 com.sun.mail.imap.IMAPMessage 继承的字段
bs, envelope, sectionId
 
从类 javax.mail.internet.MimeMessage 继承的字段
content, contentStream, dh, flags, headers, modified, saved
 
从类 javax.mail.Message 继承的字段
expunged, folder, msgnum, session
 
从接口 javax.mail.Part 继承的字段
ATTACHMENT, INLINE
 
方法摘要
protected  void checkExpunged()
           
protected  int getFetchBlockSize()
           
protected  Object getMessageCacheLock()
          Get the messageCacheLock, associated with this Message's Folder.
protected  IMAPProtocol getProtocol()
          Get this message's folder's protocol connection.
protected  int getSequenceNumber()
          Get this message's IMAP sequence number.
 int getSize()
          Get the message size.
 boolean isExpunged()
          Checks whether this message is expunged.
protected  boolean isREV1()
           
 void setFlags(Flags flag, boolean set)
          Set/Unset the given flags in this message.
 
从类 com.sun.mail.imap.IMAPMessage 继承的方法
addFrom, addHeader, addHeaderLine, addRecipients, forceCheckExpunged, getAllHeaderLines, getAllHeaders, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInReplyTo, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getPeek, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSubject, getUID, invalidateHeaders, isSet, removeHeader, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDisposition, setExpunged, setFileName, setFrom, setHeader, setMessageNumber, setPeek, setRecipients, setReplyTo, setSender, setSentDate, setSequenceNumber, setSubject, setUID, writeTo
 
从类 javax.mail.internet.MimeMessage 继承的方法
addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getInputStream, getRawInputStream, isMimeType, parse, reply, saveChanges, setContent, setContent, setDescription, setFrom, setRecipients, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo
 
从类 javax.mail.Message 继承的方法
addRecipient, getFolder, getMessageNumber, match, setFlag, setRecipient
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getProtocol

protected IMAPProtocol getProtocol()
                            throws ProtocolException,
                                   FolderClosedException
从类 IMAPMessage 复制的描述
Get this message's folder's protocol connection. Throws FolderClosedException, if the protocol connection is not available. ASSERT: Must hold the messageCacheLock.

覆盖:
IMAPMessage 中的 getProtocol
抛出:
ProtocolException
FolderClosedException

isREV1

protected boolean isREV1()
                  throws FolderClosedException
覆盖:
IMAPMessage 中的 isREV1
抛出:
FolderClosedException

getMessageCacheLock

protected Object getMessageCacheLock()
从类 IMAPMessage 复制的描述
Get the messageCacheLock, associated with this Message's Folder.

覆盖:
IMAPMessage 中的 getMessageCacheLock

getSequenceNumber

protected int getSequenceNumber()
从类 IMAPMessage 复制的描述
Get this message's IMAP sequence number. ASSERT: This method must be called only when holding the messageCacheLock.

覆盖:
IMAPMessage 中的 getSequenceNumber

checkExpunged

protected void checkExpunged()
                      throws MessageRemovedException
覆盖:
IMAPMessage 中的 checkExpunged
抛出:
MessageRemovedException

isExpunged

public boolean isExpunged()
从类 Message 复制的描述
Checks whether this message is expunged. All other methods except getMessageNumber() 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 explicit expunge() is done on the Folder.

See the description of expunge() for more details on expunge handling.

覆盖:
Message 中的 isExpunged
另请参见:
Folder.expunge()

getFetchBlockSize

protected int getFetchBlockSize()
覆盖:
IMAPMessage 中的 getFetchBlockSize

getSize

public int getSize()
            throws MessagingException
从类 IMAPMessage 复制的描述
Get the message size.

Note that this returns RFC822.SIZE. That is, it's the size of the whole message, header and body included.

指定者:
接口 Part 中的 getSize
覆盖:
IMAPMessage 中的 getSize
返回:
size of content in bytes
抛出:
MessagingException

setFlags

public void setFlags(Flags flag,
                     boolean set)
              throws MessagingException
从类 IMAPMessage 复制的描述
Set/Unset the given flags in this message.

覆盖:
IMAPMessage 中的 setFlags
参数:
flag - Flags object containing the flags to be set
set - the value to be set
抛出:
MessagingException
IllegalWriteException - if the underlying implementation does not support modification of existing values.
另请参见:
MessageChangedEvent


Copyright © 2013. All Rights Reserved.