public abstract class Folder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
deletedMessageCount |
protected Hashtable |
expungedMessages |
int |
HEADER_BUFFER_SIZE |
protected int |
messageCount |
protected Hashtable |
messagesByNumber |
protected Hashtable |
messagesByUidl |
protected byte[] |
msgHeaderBuffer |
protected Store |
store |
| Modifier | Constructor and Description |
|---|---|
protected |
Folder(Store store)
Constructor that takes a Store object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean b)
Close this Folder.
|
int |
getDeleteMessageCount() |
abstract Message |
getMessage(int msgnum)
Get the Message object corresponding to the given message number.
|
abstract Message |
getMessage(java.lang.String uidl) |
int |
getMessageCount()
Get total number of messages in this Folder.
|
Message[] |
getMessages()
Get all Message objects from this Folder.
|
Message[] |
getMessages(int start,
int end)
Get the Message objects for message numbers ranging from start through end, both start and end inclusive.
|
abstract void |
open()
Open this Folder.
|
abstract void |
reset()
Reset this session, undoing any operations performed over messages on this folder during this session.
|
protected Store store
protected Hashtable messagesByUidl
protected Hashtable messagesByNumber
protected Hashtable expungedMessages
protected int messageCount
protected int deletedMessageCount
public int HEADER_BUFFER_SIZE
protected byte[] msgHeaderBuffer
protected Folder(Store store)
store - the Store that holds this folderpublic abstract void open()
throws MessagingException
MessagingExceptionpublic int getMessageCount()
throws MessagingException
MessagingExceptionpublic int getDeleteMessageCount()
throws MessagingException
MessagingExceptionpublic Message[] getMessages() throws MessagingException
MessagingExceptionpublic Message[] getMessages(int start, int end) throws MessagingException
start - end - MessagingExceptionpublic abstract Message getMessage(int msgnum) throws MessagingException
msgnum - the message numberMessagingExceptionpublic abstract Message getMessage(java.lang.String uidl) throws MessagingException
MessagingExceptionpublic abstract void reset()
throws MessagingException
MessagingExceptionpublic void close(boolean b)
b -