org.apache.james.util.mail.handlers
Class multipart_report

java.lang.Object
  extended by org.apache.james.util.mail.handlers.AbstractDataContentHandler
      extended by org.apache.james.util.mail.handlers.multipart_report
All Implemented Interfaces:
javax.activation.DataContentHandler

public class multipart_report
extends AbstractDataContentHandler

Data Content Handler for...

MIME type name
multipart
MIME subtype name
report


Constructor Summary
multipart_report()
          Default constructor.
 
Method Summary
protected  java.lang.Object computeContent(javax.activation.DataSource aDataSource)
          Compute the content from aDataSource.
protected  javax.activation.ActivationDataFlavor computeDataFlavor()
          Compute an ActivationDataFlavor.
 void writeTo(java.lang.Object aPart, java.lang.String aMimeType, java.io.OutputStream aStream)
           
 
Methods inherited from class org.apache.james.util.mail.handlers.AbstractDataContentHandler
getContent, getDataFlavor, getTransferData, getTransferDataFlavors, setDataFlavor, updateDataFlavor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

multipart_report

public multipart_report()
Default constructor.

Method Detail

computeDataFlavor

protected javax.activation.ActivationDataFlavor computeDataFlavor()
Description copied from class: AbstractDataContentHandler
Compute an ActivationDataFlavor.

Specified by:
computeDataFlavor in class AbstractDataContentHandler
Returns:
A new ActivationDataFlavor
See Also:
AbstractDataContentHandler.computeDataFlavor()

writeTo

public void writeTo(java.lang.Object aPart,
                    java.lang.String aMimeType,
                    java.io.OutputStream aStream)
             throws java.io.IOException
Throws:
java.io.IOException
See Also:
DataContentHandler.writeTo(java.lang.Object, java.lang.String, java.io.OutputStream)

computeContent

protected java.lang.Object computeContent(javax.activation.DataSource aDataSource)
                                   throws javax.mail.MessagingException
Description copied from class: AbstractDataContentHandler
Compute the content from aDataSource.

Specified by:
computeContent in class AbstractDataContentHandler
Returns:
new Content built from the DataSource
Throws:
javax.mail.MessagingException
See Also:
AbstractDataContentHandler.computeContent(javax.activation.DataSource)


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.