|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
totalcross.lang.Objecttotalcross.net.mail.Folder
public abstract class Folder
Folder is an abstract class that represents a folder for mail messages. Subclasses implement protocol specific Folders.
| Field Summary | |
|---|---|
protected int |
deletedMessageCount
|
protected Hashtable |
expungedMessages
|
protected int |
HEADER_BUFFER_SIZE
|
protected int |
messageCount
|
protected Hashtable |
messagesByNumber
|
protected Hashtable |
messagesByUidl
|
protected byte[] |
msgHeaderBuffer
|
protected Store |
store
|
| Constructor Summary | |
|---|---|
protected |
Folder(Store store)
Constructor that takes a Store object. |
| Method Summary | |
|---|---|
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(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. |
| Methods inherited from class totalcross.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Store store
protected Hashtable messagesByUidl
protected Hashtable messagesByNumber
protected Hashtable expungedMessages
protected int messageCount
protected int deletedMessageCount
protected int HEADER_BUFFER_SIZE
protected byte[] msgHeaderBuffer
| Constructor Detail |
|---|
protected Folder(Store store)
store - the Store that holds this folder| Method Detail |
|---|
public abstract void open()
throws MessagingException
MessagingException
public int getMessageCount()
throws MessagingException
MessagingException
public int getDeleteMessageCount()
throws MessagingException
MessagingException
public Message[] getMessages()
throws MessagingException
MessagingException
public Message[] getMessages(int start,
int end)
throws MessagingException
start - end -
MessagingException
public abstract Message getMessage(int msgnum)
throws MessagingException
msgnum - the message number
MessagingException
public abstract Message getMessage(String uidl)
throws MessagingException
MessagingException
public abstract void reset()
throws MessagingException
MessagingExceptionpublic void close(boolean b)
b -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||