Module com.sun.xml.messaging.saaj
Package com.sun.xml.messaging.saaj.soap
Class FastInfosetDataContentHandler
java.lang.Object
com.sun.xml.messaging.saaj.soap.FastInfosetDataContentHandler
- All Implemented Interfaces:
jakarta.activation.DataContentHandler
public class FastInfosetDataContentHandler
extends Object
implements jakarta.activation.DataContentHandler
JAF data handler for Fast Infoset content
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContent
(jakarta.activation.DataSource dataSource) getTransferData
(jakarta.activation.ActivationDataFlavor flavor, jakarta.activation.DataSource dataSource) Return the Transfer Data of type DataFlavor from InputStreamjakarta.activation.ActivationDataFlavor[]
Return the DataFlavors for thisDataContentHandler
void
writeTo
(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
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 flavor, jakarta.activation.DataSource dataSource) throws IOException Return the Transfer Data of type DataFlavor from InputStream- Specified by:
getTransferData
in interfacejakarta.activation.DataContentHandler
- Parameters:
flavor
- The DataFlavor.dataSource
- DataSource.- Returns:
- The constructed Object.
- Throws:
IOException
- in case of an I/O error
-
getContent
- Specified by:
getContent
in interfacejakarta.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:
writeTo
in interfacejakarta.activation.DataContentHandler
- Throws:
IOException
-