com.sun.xml.messaging.saaj.soap
Class XmlDataContentHandler
java.lang.Object
com.sun.xml.messaging.saaj.soap.XmlDataContentHandler
- All Implemented Interfaces:
- DataContentHandler
public class XmlDataContentHandler
- extends Object
- implements DataContentHandler
JAF data handler for XML content
- Author:
- Anil Vijendran
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STR_SRC
public static final String STR_SRC
- See Also:
- Constant Field Values
XmlDataContentHandler
public XmlDataContentHandler()
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- return the DataFlavors for this
DataContentHandler
- Specified by:
getTransferDataFlavors in interface DataContentHandler
- Returns:
- The DataFlavors.
getTransferData
public Object getTransferData(DataFlavor flavor,
DataSource dataSource)
throws IOException
- return the Transfer Data of type DataFlavor from InputStream
- Specified by:
getTransferData in interface DataContentHandler
- Parameters:
df - The DataFlavor.ins - The InputStream corresponding to the data.
- Returns:
- The constructed Object.
- Throws:
IOException
getContent
public Object getContent(DataSource dataSource)
throws IOException
- Specified by:
getContent in interface DataContentHandler
- Throws:
IOException
writeTo
public void writeTo(Object obj,
String mimeType,
OutputStream os)
throws IOException
- construct an object from a byte stream
(similar semantically to previous method, we are deciding
which one to support)
- Specified by:
writeTo in interface DataContentHandler
- Throws:
IOException
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.