com.sun.xml.ws.encoding
Class XmlDataContentHandler
java.lang.Object
com.sun.xml.ws.encoding.XmlDataContentHandler
- All Implemented Interfaces:
- DataContentHandler
public class XmlDataContentHandler
- extends Object
- implements DataContentHandler
JAF data handler for XML content
- Author:
- Jitendra Kotamraju
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlDataContentHandler
public XmlDataContentHandler()
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors in interface DataContentHandler
getTransferData
public Object getTransferData(DataFlavor df,
DataSource ds)
throws IOException
- Specified by:
getTransferData in interface DataContentHandler
- Throws:
IOException
getContent
public Object getContent(DataSource ds)
throws IOException
- Create an object from the input stream
- Specified by:
getContent in interface DataContentHandler
- Throws:
IOException
writeTo
public void writeTo(Object obj,
String mimeType,
OutputStream os)
throws IOException
- Convert the object to a byte stream
- Specified by:
writeTo in interface DataContentHandler
- Throws:
IOException
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.