Package com.sun.xml.messaging.saaj.soap
Class MultipartDataContentHandler
- java.lang.Object
-
- com.sun.xml.messaging.saaj.soap.MultipartDataContentHandler
-
- All Implemented Interfaces:
DataContentHandler
public class MultipartDataContentHandler extends Object implements DataContentHandler
-
-
Constructor Summary
Constructors Constructor Description MultipartDataContentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetContent(DataSource ds)Return the content.ObjectgetTransferData(ActivationDataFlavor df, DataSource ds)Return the Transfer Data of type DataFlavor from InputStream.ActivationDataFlavor[]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 ActivationDataFlavor[] getTransferDataFlavors()
Return the DataFlavors for thisDataContentHandler.- Specified by:
getTransferDataFlavorsin interfaceDataContentHandler- Returns:
- The DataFlavors
-
getTransferData
public Object getTransferData(ActivationDataFlavor df, DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.- Specified by:
getTransferDatain interfaceDataContentHandler- Parameters:
df- The DataFlavords- The DataSource- Returns:
- String object
-
getContent
public Object getContent(DataSource ds)
Return the content.- Specified by:
getContentin interfaceDataContentHandler- 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 interfaceDataContentHandler- Parameters:
obj- The object to be converted.mimeType- The requested MIME type of the resulting byte stream.os- The output stream into which to write the converted byte stream.- Throws:
IOException- errors writing to the stream
-
-