com.sun.xml.ws.encoding
Class XmlDataContentHandler

java.lang.Object
  extended by 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

Constructor Summary
XmlDataContentHandler()
           
 
Method Summary
 Object getContent(DataSource ds)
          Create an object from the input stream
 Object getTransferData(DataFlavor df, DataSource ds)
           
 DataFlavor[] getTransferDataFlavors()
           
 void writeTo(Object obj, String mimeType, OutputStream os)
          Convert the object to a byte stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDataContentHandler

public XmlDataContentHandler()
                      throws ClassNotFoundException
Throws:
ClassNotFoundException
Method Detail

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.