org.apache.axiom.mime.impl.javamail
Class JavaMailMultipartWriterFactory

java.lang.Object
  extended by org.apache.axiom.mime.impl.javamail.JavaMailMultipartWriterFactory
All Implemented Interfaces:
MultipartWriterFactory

public class JavaMailMultipartWriterFactory
extends Object
implements MultipartWriterFactory

Factory for the JavaMail based MultipartWriter implementation.


Field Summary
static MultipartWriterFactory INSTANCE
           
 
Constructor Summary
JavaMailMultipartWriterFactory()
           
 
Method Summary
 MultipartWriter createMultipartWriter(OutputStream out, String boundary)
          Create a new MultipartWriter instance that writes a MIME multipart package to a given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MultipartWriterFactory INSTANCE
Constructor Detail

JavaMailMultipartWriterFactory

public JavaMailMultipartWriterFactory()
Method Detail

createMultipartWriter

public MultipartWriter createMultipartWriter(OutputStream out,
                                             String boundary)
Description copied from interface: MultipartWriterFactory
Create a new MultipartWriter instance that writes a MIME multipart package to a given output stream.

Specified by:
createMultipartWriter in interface MultipartWriterFactory
Parameters:
out - The output stream to write the MIME package to.
boundary - The MIME boundary to use. The value should not include the leading dashes, i.e. it is the same value as used in the boundary content type parameter.
Returns:
the writer instance


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.