Class DefaultFolder

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class DefaultFolder
    extends jakarta.mail.Folder
    The POP3 DefaultFolder. Only contains the "INBOX" folder.
    • Field Summary

      • Fields inherited from class jakarta.mail.Folder

        HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appendMessages​(jakarta.mail.Message[] msgs)  
      void close​(boolean expunge)  
      boolean create​(int type)  
      boolean delete​(boolean recurse)  
      boolean exists()  
      jakarta.mail.Message[] expunge()  
      jakarta.mail.Folder getFolder​(java.lang.String name)  
      java.lang.String getFullName()  
      protected jakarta.mail.Folder getInbox()  
      jakarta.mail.Message getMessage​(int msgno)  
      int getMessageCount()  
      java.lang.String getName()  
      jakarta.mail.Folder getParent()  
      jakarta.mail.Flags getPermanentFlags()  
      char getSeparator()  
      int getType()  
      boolean hasNewMessages()  
      boolean isOpen()  
      jakarta.mail.Folder[] list​(java.lang.String pattern)  
      void open​(int mode)  
      boolean renameTo​(jakarta.mail.Folder f)  
      • Methods inherited from class jakarta.mail.Folder

        addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, close, copyMessages, fetch, finalize, getDeletedMessageCount, getMessages, getMessages, getMessages, getMode, getNewMessageCount, getStore, getUnreadMessageCount, getURLName, isSubscribed, list, listSubscribed, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, search, search, setFlags, setFlags, setFlags, setSubscribed, toString
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in class jakarta.mail.Folder
      • getFullName

        public java.lang.String getFullName()
        Specified by:
        getFullName in class jakarta.mail.Folder
      • getParent

        public jakarta.mail.Folder getParent()
        Specified by:
        getParent in class jakarta.mail.Folder
      • exists

        public boolean exists()
        Specified by:
        exists in class jakarta.mail.Folder
      • list

        public jakarta.mail.Folder[] list​(java.lang.String pattern)
                                   throws jakarta.mail.MessagingException
        Specified by:
        list in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • getSeparator

        public char getSeparator()
        Specified by:
        getSeparator in class jakarta.mail.Folder
      • getType

        public int getType()
        Specified by:
        getType in class jakarta.mail.Folder
      • create

        public boolean create​(int type)
                       throws jakarta.mail.MessagingException
        Specified by:
        create in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • hasNewMessages

        public boolean hasNewMessages()
                               throws jakarta.mail.MessagingException
        Specified by:
        hasNewMessages in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • getFolder

        public jakarta.mail.Folder getFolder​(java.lang.String name)
                                      throws jakarta.mail.MessagingException
        Specified by:
        getFolder in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • getInbox

        protected jakarta.mail.Folder getInbox()
                                        throws jakarta.mail.MessagingException
        Throws:
        jakarta.mail.MessagingException
      • delete

        public boolean delete​(boolean recurse)
                       throws jakarta.mail.MessagingException
        Specified by:
        delete in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • renameTo

        public boolean renameTo​(jakarta.mail.Folder f)
                         throws jakarta.mail.MessagingException
        Specified by:
        renameTo in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • open

        public void open​(int mode)
                  throws jakarta.mail.MessagingException
        Specified by:
        open in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • close

        public void close​(boolean expunge)
                   throws jakarta.mail.MessagingException
        Specified by:
        close in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in class jakarta.mail.Folder
      • getPermanentFlags

        public jakarta.mail.Flags getPermanentFlags()
        Specified by:
        getPermanentFlags in class jakarta.mail.Folder
      • getMessageCount

        public int getMessageCount()
                            throws jakarta.mail.MessagingException
        Specified by:
        getMessageCount in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • getMessage

        public jakarta.mail.Message getMessage​(int msgno)
                                        throws jakarta.mail.MessagingException
        Specified by:
        getMessage in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • appendMessages

        public void appendMessages​(jakarta.mail.Message[] msgs)
                            throws jakarta.mail.MessagingException
        Specified by:
        appendMessages in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException
      • expunge

        public jakarta.mail.Message[] expunge()
                                       throws jakarta.mail.MessagingException
        Specified by:
        expunge in class jakarta.mail.Folder
        Throws:
        jakarta.mail.MessagingException