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 -
Method Summary
Modifier and TypeMethodDescriptiongetContent(javax.activation.DataSource ds) Return the content.getTransferData(DataFlavor df, javax.activation.DataSource ds) Return the Transfer Data of type DataFlavor from InputStream.Return the DataFlavors for thisDataContentHandler.voidwriteTo(Object obj, String mimeType, OutputStream os) Write the object to the output stream, using the specific MIME type.
-
Constructor Details
-
MultipartDataContentHandler
public MultipartDataContentHandler()
-
-
Method Details
-
getTransferDataFlavors
Return the DataFlavors for thisDataContentHandler.- Specified by:
getTransferDataFlavorsin interfacejavax.activation.DataContentHandler- Returns:
- The DataFlavors
-
getTransferData
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
Return the content.- Specified by:
getContentin interfacejavax.activation.DataContentHandler- Parameters:
ds- The DataSource- Returns:
- content
-
writeTo
Write the object to the output stream, using the specific MIME type.- Specified by:
writeToin interfacejavax.activation.DataContentHandler- Throws:
IOException
-