ePOST API

rice.email.proxy.mail
Class MailDataHandler

java.lang.Object
  extended by rice.email.proxy.mail.MailDataHandler
All Implemented Interfaces:
javax.activation.DataContentHandler

public class MailDataHandler
extends java.lang.Object
implements javax.activation.DataContentHandler


Constructor Summary
MailDataHandler()
          Creates a new instance of MailDataHandler
 
Method Summary
 java.lang.Object getContent(javax.activation.DataSource dataSource)
          This is the key, it just returns the data uninterpreted.
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor dataFlavor, javax.activation.DataSource dataSource)
           
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 void writeTo(java.lang.Object obj, java.lang.String str, java.io.OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailDataHandler

public MailDataHandler()
Creates a new instance of MailDataHandler

Method Detail

getContent

public java.lang.Object getContent(javax.activation.DataSource dataSource)
                            throws java.io.IOException
This is the key, it just returns the data uninterpreted.

Specified by:
getContent in interface javax.activation.DataContentHandler
Throws:
java.io.IOException

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor dataFlavor,
                                        javax.activation.DataSource dataSource)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Specified by:
getTransferData in interface javax.activation.DataContentHandler
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface javax.activation.DataContentHandler

writeTo

public void writeTo(java.lang.Object obj,
                    java.lang.String str,
                    java.io.OutputStream outputStream)
             throws java.io.IOException
Specified by:
writeTo in interface javax.activation.DataContentHandler
Throws:
java.io.IOException

ePOST API

Copyright © 2001-2005 - Rice Pastry.