Methods Summary |
---|
protected java.lang.Object | computeContent(javax.activation.DataSource aDataSource)
return new MimeMultipartReport(aDataSource);
|
protected javax.activation.ActivationDataFlavor | computeDataFlavor()
return new ActivationDataFlavor(MimeMultipartReport.class,
"multipart/report", "Multipart Report");
|
public void | writeTo(java.lang.Object aPart, java.lang.String aMimeType, java.io.OutputStream aStream)
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());
}
|