FileDocCategorySizeDatePackage
multipart_report.javaAPI DocApache James 2.3.13034Fri Jan 12 12:56:34 GMT 2007org.apache.james.util.mail.handlers

multipart_report

public class multipart_report extends AbstractDataContentHandler

Data Content Handler for...

MIME type name
multipart
MIME subtype name
report

Fields Summary
Constructors Summary
public multipart_report()
Default constructor.

        super();
    
Methods Summary
protected java.lang.ObjectcomputeContent(javax.activation.DataSource aDataSource)

see
org.apache.james.util.mail.handlers.AbstractDataContentHandler#computeContent(javax.activation.DataSource)

        return new MimeMultipartReport(aDataSource);
    
protected javax.activation.ActivationDataFlavorcomputeDataFlavor()

see
org.apache.james.util.mail.handlers.AbstractDataContentHandler#computeDataFlavor()

        return new ActivationDataFlavor(MimeMultipartReport.class,
                "multipart/report", "Multipart Report");
    
public voidwriteTo(java.lang.Object aPart, java.lang.String aMimeType, java.io.OutputStream aStream)

see
javax.activation.DataContentHandler#writeTo(java.lang.Object, java.lang.String, java.io.OutputStream)

        if (!(aPart instanceof MimeMultipartReport))
            throw new IOException("Type \"" + aPart.getClass().getName()
                    + "\" is not supported.");
        try
        {
            ((MimeMultipartReport) aPart).writeTo(aStream);
        }
        catch (MessagingException e)
        {
            throw new IOException(e.getMessage());
        }