Package com.sun.xml.messaging.saaj.soap
Class StringDataContentHandler
java.lang.Object
com.sun.xml.messaging.saaj.soap.StringDataContentHandler
- All Implemented Interfaces:
javax.activation.DataContentHandler
JAF data content handler for text/plain --> String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContent(javax.activation.DataSource ds) protected javax.activation.ActivationDataFlavorgetDF()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 type, OutputStream os) Write the object to the output stream, using the specified MIME type.
-
Constructor Details
-
StringDataContentHandler
public StringDataContentHandler()
-
-
Method Details
-
getDF
protected javax.activation.ActivationDataFlavor getDF() -
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 corresponding to the data- Returns:
- String object
- Throws:
IOException
-
getContent
- Specified by:
getContentin interfacejavax.activation.DataContentHandler- Throws:
IOException
-
writeTo
Write the object to the output stream, using the specified MIME type.- Specified by:
writeToin interfacejavax.activation.DataContentHandler- Throws:
IOException
-