Class w3c.mail.VMailMailFolder
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.mail.VMailMailFolder

java.lang.Object
   |
   +----w3c.mail.VMailMailFolder

public class VMailMailFolder
extends Object
implements MailFolder

Constructor Index

 o VMailMailFolder(String)

Method Index

 o getMailMessage(int)
Get a mail message by its integer index in the folder.
 o getMailMessage(MailMark)
Get a mail message, given its mark.
 o getMailMessageInputStream(MailMessage)
Get a mail message body as an input stream.
 o getName()
Get this folder name.
 o getNextMailMessage()
 o hasMoreMailMessages()
 o main(String[])
 o resetMailSequence()

Constructors

 o VMailMailFolder
  public VMailMailFolder(String name) throws FileNotFoundException, IOException

Methods

 o getName
  public String getName()
Get this folder name.
 o getMailMessage
  protected MailMessage getMailMessage(MailMark mark)
Get a mail message, given its mark. As mail marks are private to this package, this can only be used from here.
Parameters:
mark - The mark of the message to be retrieved.
Returns:
A MailMessage instance corresponding to the mark.
 o resetMailSequence
  public void resetMailSequence()
 o getNextMailMessage
  public MailMessage getNextMailMessage()
 o hasMoreMailMessages
  public boolean hasMoreMailMessages()
 o getMailMessageInputStream
  public InputStream getMailMessageInputStream(MailMessage msg)
Get a mail message body as an input stream.
Parameters:
msg - The mail message whose body is to be retreievd.
Returns:
An InputStream object, to read in the message body.
 o getMailMessage
  public MailMessage getMailMessage(int idx)
Get a mail message by its integer index in the folder.
Parameters:
idx - The position of the message in the folder. # @return The corresponding MailMessage instance or null.
 o main
  public static void main(String args[]) throws IOException, FileNotFoundException, MIMEException

All Packages  Class Hierarchy  This Package  Previous  Next  Index