ePOST API

rice.email.proxy.mail
Class MimeMessage

java.lang.Object
  extended by rice.email.proxy.mail.MimeMessage

public class MimeMessage
extends java.lang.Object


Field Summary
static java.text.SimpleDateFormat dateReader
           
static java.text.SimpleDateFormat dateWriter
           
 
Constructor Summary
MimeMessage(javax.mail.internet.MimeMessage message)
           
MimeMessage(Resource file)
           
 
Method Summary
 java.lang.Object getContent()
           
 java.io.Reader getContents()
           
 java.lang.String getHeader()
           
 java.lang.String[] getHeader(java.lang.String name)
           
 java.lang.String getInternalDate()
           
 java.util.Enumeration getMatchingHeaderLines(java.lang.String[] names)
           
 javax.mail.internet.MimeMessage getMessage()
           
 java.util.Enumeration getNonMatchingHeaderLines(java.lang.String[] names)
           
 long getSize()
           
 void writeTo(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateReader

public static final java.text.SimpleDateFormat dateReader

dateWriter

public static final java.text.SimpleDateFormat dateWriter
Constructor Detail

MimeMessage

public MimeMessage(Resource file)
            throws MailException
Throws:
MailException

MimeMessage

public MimeMessage(javax.mail.internet.MimeMessage message)
            throws MailException
Throws:
MailException
Method Detail

getContents

public java.io.Reader getContents()
                           throws MailException
Throws:
MailException

getMessage

public javax.mail.internet.MimeMessage getMessage()

getContent

public java.lang.Object getContent()
                            throws MailException
Throws:
MailException

writeTo

public void writeTo(java.io.OutputStream out)
             throws MailException,
                    java.io.IOException
Throws:
MailException
java.io.IOException

getHeader

public java.lang.String getHeader()
                           throws MailException
Throws:
MailException

getHeader

public java.lang.String[] getHeader(java.lang.String name)
                             throws MailException
Throws:
MailException

getMatchingHeaderLines

public java.util.Enumeration getMatchingHeaderLines(java.lang.String[] names)
                                             throws MailException
Throws:
MailException

getNonMatchingHeaderLines

public java.util.Enumeration getNonMatchingHeaderLines(java.lang.String[] names)
                                                throws MailException
Throws:
MailException

getSize

public long getSize()
             throws MailException
Throws:
MailException

getInternalDate

public java.lang.String getInternalDate()

ePOST API

Copyright © 2001-2005 - Rice Pastry.