Vordel SDK

com.vordel.mime
Class BodyMimePart

java.lang.Object
  extended by MimeBodyPart
      extended by com.vordel.mime.BodyMimePart

public class BodyMimePart
extends MimeBodyPart


Constructor Summary
BodyMimePart(Body body)
           
 
Method Summary
 void attachFile(java.io.File file)
           
 void attachFile(java.lang.String file)
           
 java.lang.Object getContent()
           
protected  java.io.InputStream getContentStream()
           
 javax.activation.DataHandler getDataHandler()
           
 java.io.InputStream getInputStream()
           
 int getLineCount()
           
 int getSize()
           
 void setContent(Multipart mp)
           
 void setContent(java.lang.Object obj, java.lang.String type)
           
 void setDataHandler(javax.activation.DataHandler dh)
           
 void setText(java.lang.String text)
           
 void writeTo(java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyMimePart

public BodyMimePart(Body body)
Method Detail

getContent

public java.lang.Object getContent()
                            throws java.io.IOException,
                                   MessagingException
Throws:
java.io.IOException
MessagingException

getDataHandler

public javax.activation.DataHandler getDataHandler()
                                            throws MessagingException
Throws:
MessagingException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException,
                                          MessagingException
Throws:
java.io.IOException
MessagingException

attachFile

public void attachFile(java.io.File file)
                throws java.io.IOException,
                       MessagingException
Throws:
java.io.IOException
MessagingException

attachFile

public void attachFile(java.lang.String file)
                throws java.io.IOException,
                       MessagingException
Throws:
java.io.IOException
MessagingException

getContentStream

protected java.io.InputStream getContentStream()
                                        throws MessagingException
Throws:
MessagingException

getLineCount

public int getLineCount()
                 throws MessagingException
Throws:
MessagingException

getSize

public int getSize()
            throws MessagingException
Throws:
MessagingException

setContent

public void setContent(Multipart mp)
                throws MessagingException
Throws:
MessagingException

setContent

public void setContent(java.lang.Object obj,
                       java.lang.String type)
                throws MessagingException
Throws:
MessagingException

setDataHandler

public void setDataHandler(javax.activation.DataHandler dh)
                    throws MessagingException
Throws:
MessagingException

setText

public void setText(java.lang.String text)
             throws MessagingException
Throws:
MessagingException

writeTo

public void writeTo(java.io.OutputStream os)
             throws java.io.IOException,
                    MessagingException
Throws:
java.io.IOException
MessagingException

Vordel SDK


This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel