public class XmlDataContentHandler extends Object implements DataContentHandler
Constructor and Description |
---|
XmlDataContentHandler() |
Modifier and Type | Method and Description |
---|---|
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
|
public XmlDataContentHandler() throws ClassNotFoundException
ClassNotFoundException
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface DataContentHandler
public Object getTransferData(DataFlavor df, DataSource ds) throws IOException
getTransferData
in interface DataContentHandler
IOException
public Object getContent(DataSource ds) throws IOException
getContent
in interface DataContentHandler
IOException
public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
writeTo
in interface DataContentHandler
IOException
Copyright © 2015 Oracle Corporation. All rights reserved.