Method Summary |
|
public void | appendMessages(Message[] msgs) Always throws MethodNotSupportedException
because the POP3 protocol doesn't support appending messages. |
void | checkClosed() |
void | checkOpen() |
void | checkReadable() |
void | checkWritable() |
public synchronized void | close(boolean expunge) |
public boolean | create(int type) Always returns false ; the POP3 protocol doesn't
support creating folders. |
protected POP3Message | createMessage(Folder f, int msgno) |
public boolean | delete(boolean recurse) Always throws MethodNotSupportedException
because the POP3 protocol doesn't allow the INBOX to
be deleted. |
public boolean | exists() Always true for the folder "INBOX", always false for
any other name. |
public Message[] | expunge() Always throws MethodNotSupportedException
because the POP3 protocol doesn't support expunging messages
without closing the folder; call the
POP3Folder.close close method
with the expunge argument set to true
instead. |
public synchronized void | fetch(Message[] msgs, FetchProfile fp) Prefetch information about POP3 messages. |
protected void | finalize() Close the folder when we're finalized. |
public Folder | getFolder(String name) Always throws MessagingException because no POP3 folders
can contain subfolders. |
public String | getFullName() |
public synchronized Message | getMessage(int msgno) |
public synchronized int | getMessageCount() Will not change while the folder is open because the POP3
protocol doesn't support notification of new messages
arriving in open folders. |
public String | getName() |
public Folder | getParent() |
public Flags | getPermanentFlags() Always returns an empty Flags object because
the POP3 protocol doesn't support any permanent flags. |
Protocol | getProtocol() Centralize access to the Protocol object by POP3Message
objects so that they will fail appropriately when the folder
is closed. |
public char | getSeparator() Always returns a NUL character because POP3 doesn't support a hierarchy. |
public synchronized int | getSize() Return the size of this folder, as was returned by the POP3 STAT
command when this folder was opened. |
public synchronized int[] | getSizes() Return the sizes of all messages in this folder, as returned
by the POP3 LIST command. |
public int | getType() Always returns Folder.HOLDS_MESSAGES. |
public synchronized String | getUID(Message msg) Return the unique ID string for this message, or null if
not available. |
public boolean | hasNewMessages() Always returns false ; the POP3 protocol provides
no way to determine when a new message arrives. |
public boolean | isOpen() |
public Folder[] | list(String pattern) Always throws MessagingException because no POP3 folders
can contain subfolders. |
public synchronized InputStream | listCommand() Return the raw results of the POP3 LIST command with no arguments. |
protected void | notifyMessageChangedListeners(int type, Message m) |
public synchronized void | open(int mode) Throws FolderNotFoundException unless this
folder is named "INBOX". |
public boolean | renameTo(Folder f) Always throws MethodNotSupportedException
because the POP3 protocol doesn't support multiple folders. |