Module com.sun.xml.messaging.saaj
Package com.sun.xml.messaging.saaj.soap
Class MultipartDataContentHandler
java.lang.Object
com.sun.xml.messaging.saaj.soap.MultipartDataContentHandler
- All Implemented Interfaces:
jakarta.activation.DataContentHandler
public class MultipartDataContentHandler
extends Object
implements jakarta.activation.DataContentHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContent
(jakarta.activation.DataSource ds) Return the content.getTransferData
(jakarta.activation.ActivationDataFlavor df, jakarta.activation.DataSource ds) Return the Transfer Data of type DataFlavor from InputStream.jakarta.activation.ActivationDataFlavor[]
Return the DataFlavors for thisDataContentHandler
.void
writeTo
(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
public jakarta.activation.ActivationDataFlavor[] getTransferDataFlavors()Return the DataFlavors for thisDataContentHandler
.- Specified by:
getTransferDataFlavors
in interfacejakarta.activation.DataContentHandler
- Returns:
- The DataFlavors
-
getTransferData
public Object getTransferData(jakarta.activation.ActivationDataFlavor df, jakarta.activation.DataSource ds) Return the Transfer Data of type DataFlavor from InputStream.- Specified by:
getTransferData
in interfacejakarta.activation.DataContentHandler
- Parameters:
df
- The DataFlavords
- The DataSource- Returns:
- String object
-
getContent
Return the content.- Specified by:
getContent
in interfacejakarta.activation.DataContentHandler
- Parameters:
ds
- The DataSource- Returns:
- content
-
writeTo
Write the object to the output stream, using the specific MIME type.- Specified by:
writeTo
in interfacejakarta.activation.DataContentHandler
- Throws:
IOException
-