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
Constructors -
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.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
public jakarta.activation.ActivationDataFlavor[] getTransferDataFlavors()Return the DataFlavors for thisDataContentHandler.- Specified by:
getTransferDataFlavorsin 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:
getTransferDatain interfacejakarta.activation.DataContentHandler- Parameters:
df- The DataFlavords- The DataSource- Returns:
- String object
-
getContent
Return the content.- Specified by:
getContentin interfacejakarta.activation.DataContentHandler- Parameters:
ds- The DataSource- Returns:
- content
-
writeTo
Write the object to the output stream, using the specific MIME type.- Specified by:
writeToin interfacejakarta.activation.DataContentHandler- Throws:
IOException
-