| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class DefaultFolder extends Folder
The POP3 DefaultFolder. Only contains the "INBOX" folder.
Field Summary |
---|
Fields inherited from class javax.mail.Folder |
---|
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store |
Method Summary | |
---|---|
void |
appendMessages(Message[] msgs) Append given Messages to this folder. |
void |
close(boolean expunge) Close this Folder. |
boolean |
create(int type) Create this folder on the Store. |
boolean |
delete(boolean recurse) Delete this Folder. |
boolean |
exists() Tests if this folder physically exists on the Store. |
Message[] |
expunge() Expunge (permanently remove) messages marked DELETED. |
Folder |
Return the Folder object corresponding to the given name. |
String |
Returns the full name of this Folder. |
protected Folder |
getInbox() |
Message |
getMessage(int msgno) Get the Message object corresponding to the given message number. |
int |
Get total number of messages in this Folder. |
String |
getName() Returns the name of this Folder. |
Folder |
Returns the parent folder of this folder. |
Flags |
Get the permanent flags supported by this Folder. |
char |
Return the delimiter character that separates this Folder's pathname from the names of immediate subfolders. |
int |
getType() Returns the type of this Folder, that is, whether this folder can hold messages or subfolders or both. |
boolean |
Returns true if this Folder has new messages since the last time this indication was reset. |
boolean |
isOpen() Indicates whether this Folder is in the 'open' state. |
Folder[] |
Returns a list of Folders belonging to this Folder's namespace that match the specified pattern. |
void |
open(int mode) Open this Folder. |
boolean |
Rename this Folder. |
Method Detail |
---|
public void appendMessages(Message[] msgs) throws MessagingException
appendMessages
in class Folder
msgs
MessagingException
public void close(boolean expunge) throws MessagingException
close
in class Folder
expunge
MessagingException
public boolean create(int type) throws MessagingException
create
in class Folder
type
MessagingException
public boolean delete(boolean recurse) throws MessagingException
delete
in class Folder
recurse
MessagingException
public boolean exists()
exists
in class Folder
public Message[] expunge() throws MessagingException
expunge
in class Folder
MessagingException
public Folder getFolder(String name) throws MessagingException
getFolder
in class Folder
name
MessagingException
public String getFullName()
getFullName
in class Folder
protected Folder getInbox() throws MessagingException
MessagingException
public Message getMessage(int msgno) throws MessagingException
getMessage
in class Folder
msgno
MessagingException
public int getMessageCount() throws MessagingException
getMessageCount
in class Folder
MessagingException
public String getName()
getName
in class Folder
public Folder getParent()
getParent
in class Folder
public Flags getPermanentFlags()
getPermanentFlags
in class Folder
public char getSeparator()
getSeparator
in class Folder
public int getType()
getType
in class Folder
public boolean hasNewMessages() throws MessagingException
hasNewMessages
in class Folder
MessagingException
public boolean isOpen()
isOpen
in class Folder
public Folder[] list(String pattern) throws MessagingException
list
in class Folder
pattern
MessagingException
public void open(int mode) throws MessagingException
open
in class Folder
mode
MessagingException
public boolean renameTo(Folder f) throws MessagingException
renameTo
in class Folder
f
MessagingException
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |