Package com.sun.xml.messaging.saaj.soap
Class MultipartDataContentHandler
- java.lang.Object
-
- com.sun.xml.messaging.saaj.soap.MultipartDataContentHandler
-
- All Implemented Interfaces:
javax.activation.DataContentHandler
public class MultipartDataContentHandler extends Object implements javax.activation.DataContentHandler
-
-
Constructor Summary
Constructors Constructor Description MultipartDataContentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetContent(javax.activation.DataSource ds)Return the content.ObjectgetTransferData(DataFlavor df, javax.activation.DataSource ds)Return the Transfer Data of type DataFlavor from InputStream.DataFlavor[]getTransferDataFlavors()Return the DataFlavors for thisDataContentHandler.voidwriteTo(Object obj, String mimeType, OutputStream os)Write the object to the output stream, using the specific MIME type.
-
-
-
Method Detail
-
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
Return the DataFlavors for thisDataContentHandler.- Specified by:
getTransferDataFlavorsin interfacejavax.activation.DataContentHandler- Returns:
- The DataFlavors
-
getTransferData
public Object getTransferData(DataFlavor df, javax.activation.DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.- Specified by:
getTransferDatain interfacejavax.activation.DataContentHandler- Parameters:
df- The DataFlavords- The DataSource- Returns:
- String object
-
getContent
public Object getContent(javax.activation.DataSource ds)
Return the content.- Specified by:
getContentin interfacejavax.activation.DataContentHandler- Parameters:
ds- The DataSource- Returns:
- content
-
writeTo
public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
Write the object to the output stream, using the specific MIME type.- Specified by:
writeToin interfacejavax.activation.DataContentHandler- Throws:
IOException
-
-