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
ClassNotFoundExceptionpublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface DataContentHandlerpublic Object getTransferData(DataFlavor df, DataSource ds) throws IOException
getTransferData in interface DataContentHandlerIOExceptionpublic Object getContent(DataSource ds) throws IOException
getContent in interface DataContentHandlerIOExceptionpublic void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
writeTo in interface DataContentHandlerIOExceptionCopyright © 2015 Oracle Corporation. All rights reserved.