Package com.sun.xml.messaging.saaj.soap
Class FastInfosetDataContentHandler
java.lang.Object
com.sun.xml.messaging.saaj.soap.FastInfosetDataContentHandler
- All Implemented Interfaces:
javax.activation.DataContentHandler
public class FastInfosetDataContentHandler
extends Object
implements javax.activation.DataContentHandler
JAF data handler for Fast Infoset content
- Author:
- Santiago Pericas-Geertsen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContent(javax.activation.DataSource dataSource) getTransferData(DataFlavor flavor, javax.activation.DataSource dataSource) Return the Transfer Data of type DataFlavor from InputStreamReturn the DataFlavors for thisDataContentHandlervoidwriteTo(Object obj, String mimeType, OutputStream os) Construct an object from a byte stream (similar semantically to previous method, we are deciding which one to support)
-
Field Details
-
STR_SRC
- See Also:
-
-
Constructor Details
-
FastInfosetDataContentHandler
public FastInfosetDataContentHandler()
-
-
Method Details
-
getTransferDataFlavors
Return the DataFlavors for thisDataContentHandler- Specified by:
getTransferDataFlavorsin interfacejavax.activation.DataContentHandler- Returns:
- The DataFlavors.
-
getTransferData
public Object getTransferData(DataFlavor flavor, javax.activation.DataSource dataSource) throws IOException Return the Transfer Data of type DataFlavor from InputStream- Specified by:
getTransferDatain interfacejavax.activation.DataContentHandler- Parameters:
flavor- The DataFlavor.dataSource- DataSource.- Returns:
- The constructed Object.
- Throws:
IOException- in case of an I/O error
-
getContent
- Specified by:
getContentin interfacejavax.activation.DataContentHandler- Throws:
IOException
-
writeTo
Construct an object from a byte stream (similar semantically to previous method, we are deciding which one to support)- Specified by:
writeToin interfacejavax.activation.DataContentHandler- Throws:
IOException
-