javax.mail.internet
Class MimePartDataSource

java.lang.Object
  extended by javax.mail.internet.MimePartDataSource
All Implemented Interfaces:
DataSource, MessageAware

public class MimePartDataSource
extends Object
implements DataSource, MessageAware

Version:
$Rev: 702432 $ $Date: 2008-10-07 07:18:08 -0400 (Tue, 07 Oct 2008) $

Field Summary
protected  MimePart part
           
 
Constructor Summary
MimePartDataSource(MimePart part)
           
 
Method Summary
 String getContentType()
           
 InputStream getInputStream()
           
 MessageContext getMessageContext()
           
 String getName()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

part

protected MimePart part
Constructor Detail

MimePartDataSource

public MimePartDataSource(MimePart part)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface DataSource
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface DataSource
Throws:
IOException

getContentType

public String getContentType()
Specified by:
getContentType in interface DataSource

getName

public String getName()
Specified by:
getName in interface DataSource

getMessageContext

public MessageContext getMessageContext()
Specified by:
getMessageContext in interface MessageAware


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.