com.sun.mail.imap
类 DefaultFolder

java.lang.Object
  继承者 javax.mail.Folder
      继承者 com.sun.mail.imap.IMAPFolder
          继承者 com.sun.mail.imap.DefaultFolder
所有已实现的接口:
ResponseHandler, UIDFolder

public class DefaultFolder
extends IMAPFolder

This class

版本:
1.2, 97/12/08
作者:
John Mani

嵌套类摘要
 
从类 com.sun.mail.imap.IMAPFolder 继承的嵌套类/接口
IMAPFolder.FetchProfileItem, IMAPFolder.ProtocolCommand
 
字段摘要
 
从类 com.sun.mail.imap.IMAPFolder 继承的字段
attributes, availableFlags, exists, fullName, isNamespace, messageCache, messageCacheLock, name, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATOR
 
从类 javax.mail.Folder 继承的字段
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store
 
从接口 javax.mail.UIDFolder 继承的字段
LASTUID
 
构造方法摘要
protected DefaultFolder(IMAPStore store)
           
 
方法摘要
 void appendMessages(Message[] msgs)
          Append the given messages into this folder.
 boolean delete(boolean recurse)
          Delete this folder.
 Message[] expunge()
          Expunge all messages marked as DELETED.
 Folder getFolder(String name)
          Get the named subfolder.
 String getName()
          Get the name of this folder.
 Folder getParent()
          Get this folder's parent.
 boolean hasNewMessages()
          Check whether this folder has new messages.
 Folder[] list(String pattern)
          List all subfolders matching the specified pattern.
 Folder[] listSubscribed(String pattern)
          List all subscribed subfolders matching the specified pattern.
 boolean renameTo(Folder f)
          Rename this folder.
 
从类 com.sun.mail.imap.IMAPFolder 继承的方法
addACL, addMessages, addRights, appendUIDMessages, close, copyMessages, create, doCommand, doCommandIgnoreFailure, doOptionalCommand, doProtocolCommand, exists, expunge, fetch, forceClose, getACL, getAttributes, getDeletedMessageCount, getFullName, getMessage, getMessageByUID, getMessageCount, getMessagesByUID, getMessagesByUID, getNewMessageCount, getPermanentFlags, getQuota, getSeparator, getStoreProtocol, getType, getUID, getUIDNext, getUIDValidity, getUnreadMessageCount, handleResponse, idle, isOpen, isSubscribed, listRights, myRights, open, releaseStoreProtocol, removeACL, removeRights, search, search, setFlags, setQuota, setSubscribed
 
从类 javax.mail.Folder 继承的方法
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, finalize, getMessages, getMessages, getMessages, getMode, getStore, getURLName, list, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, setFlags, setFlags, toString
 
从类 java.lang.Object 继承的方法
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

DefaultFolder

protected DefaultFolder(IMAPStore store)
方法详细信息

getName

public String getName()
从类 IMAPFolder 复制的描述
Get the name of this folder.

覆盖:
IMAPFolder 中的 getName
返回:
name of the Folder

getParent

public Folder getParent()
从类 IMAPFolder 复制的描述
Get this folder's parent.

覆盖:
IMAPFolder 中的 getParent
返回:
Parent folder

list

public Folder[] list(String pattern)
              throws MessagingException
从类 IMAPFolder 复制的描述
List all subfolders matching the specified pattern.

覆盖:
IMAPFolder 中的 list
参数:
pattern - the match pattern
返回:
array of matching Folder objects. An empty array is returned if no matching Folders exist.
抛出:
FolderNotFoundException - if this folder does not exist.
MessagingException
另请参见:
Folder.listSubscribed(java.lang.String)

listSubscribed

public Folder[] listSubscribed(String pattern)
                        throws MessagingException
从类 IMAPFolder 复制的描述
List all subscribed subfolders matching the specified pattern.

覆盖:
IMAPFolder 中的 listSubscribed
参数:
pattern - the match pattern
返回:
array of matching subscribed Folder objects. An empty array is returned if no matching subscribed folders exist.
抛出:
FolderNotFoundException - if this folder does not exist.
MessagingException
另请参见:
Folder.list(java.lang.String)

hasNewMessages

public boolean hasNewMessages()
                       throws MessagingException
从类 IMAPFolder 复制的描述
Check whether this folder has new messages.

覆盖:
IMAPFolder 中的 hasNewMessages
返回:
true if the Store has new Messages
抛出:
FolderNotFoundException - if this folder does not exist.
MessagingException

getFolder

public Folder getFolder(String name)
                 throws MessagingException
从类 IMAPFolder 复制的描述
Get the named subfolder.

覆盖:
IMAPFolder 中的 getFolder
参数:
name - name of the Folder
返回:
Folder object
抛出:
MessagingException

delete

public boolean delete(boolean recurse)
               throws MessagingException
从类 IMAPFolder 复制的描述
Delete this folder.

覆盖:
IMAPFolder 中的 delete
返回:
true if the Folder is deleted successfully
抛出:
FolderNotFoundException - if this folder does not exist
MessagingException
另请参见:
FolderEvent

renameTo

public boolean renameTo(Folder f)
                 throws MessagingException
从类 IMAPFolder 复制的描述
Rename this folder.

覆盖:
IMAPFolder 中的 renameTo
参数:
f - a folder representing the new name for this Folder
返回:
true if the Folder is renamed successfully
抛出:
FolderNotFoundException - if this folder does not exist
MessagingException
另请参见:
FolderEvent

appendMessages

public void appendMessages(Message[] msgs)
                    throws MessagingException
从类 IMAPFolder 复制的描述
Append the given messages into this folder.

覆盖:
IMAPFolder 中的 appendMessages
参数:
msgs - array of Messages to be appended
抛出:
FolderNotFoundException - if this folder does not exist.
MessagingException - if the append failed.

expunge

public Message[] expunge()
                  throws MessagingException
从类 IMAPFolder 复制的描述
Expunge all messages marked as DELETED.

覆盖:
IMAPFolder 中的 expunge
返回:
array of expunged Message objects
抛出:
FolderNotFoundException - if this folder does not exist
MessagingException
另请参见:
Message.isExpunged(), MessageCountEvent


Copyright © 2013. All Rights Reserved.