com.sun.xml.ws.encoding
Class XmlDataContentHandler

java.lang.Object
  extended by com.sun.xml.ws.encoding.XmlDataContentHandler
All Implemented Interfaces:
javax.activation.DataContentHandler

public class XmlDataContentHandler
extends java.lang.Object
implements javax.activation.DataContentHandler

JAF data handler for XML content


Constructor Summary
XmlDataContentHandler()
           
 
Method Summary
 java.lang.Object getContent(javax.activation.DataSource ds)
          Create an object from the input stream
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds)
           
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.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 java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException
Method Detail

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface javax.activation.DataContentHandler

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df,
                                        javax.activation.DataSource ds)
                                 throws java.io.IOException
Specified by:
getTransferData in interface javax.activation.DataContentHandler
Throws:
java.io.IOException

getContent

public java.lang.Object getContent(javax.activation.DataSource ds)
                            throws java.io.IOException
Create an object from the input stream

Specified by:
getContent in interface javax.activation.DataContentHandler
Throws:
java.io.IOException

writeTo

public void writeTo(java.lang.Object obj,
                    java.lang.String mimeType,
                    java.io.OutputStream os)
             throws java.io.IOException
Convert the object to a byte stream

Specified by:
writeTo in interface javax.activation.DataContentHandler
Throws:
java.io.IOException


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.