Method |
Description |
boolean exists() |
The function of this method is to check the folder exists really or not. |
abstract void open(int mode) |
The function of this method is to open the folder if it is closed. |
abstract void close(boolean expunge) |
The function of this method is to close the folder when the boolean value is true. |
abstract String getName() |
The function of this method is to return name of folder. |
URLName getURLName() |
The function of this <method is to return the URL name to represent particular folder. |
Store getStore() |
The function of this method is to return the store object which specifies this folder. |
int getMode() |
The function of this method is to return the mode from Folder.READ_ONLY, Folder.WRITE_ONLY. |
abstract boolean delete(boolean recurse) |
The function of this method is to delete folder which is closed and when boolean returns true. |
void copy Message(Messages[] mess, Folder destination |
The function of this method is to copy the message from one folder to specified folder. |
abstract Message expunge() |
The function of this method is to remove the messages deleted from folder. |
Folder[] list() |
The function of this method is to represent the list of array folders. |
abstract Folder[] list(String pattern) |
The function of this method is to represent the folders list in pattern specifying string as name of folder. |
int getNewMessagesCount() |
The function of this method is to return the count of new messages in folder while RECENT flag is set. |
Message[] getMessages() |
The function of this method is to return the objects of message in which represents all messages in folder. |
Message[] search(SearchTerm term) |
The function of this method is to return to search the messages from folders which matches the criteria and empty if matches not found. |
abstract Flags getPermanentFlags() |
The function of this method is to represent that the flags to support all the messages by the folder. |
void setFlags(Message[] messages, Flags flag, boolean value) |
The function of this method is to set the represented flag on message in array. |