DataContentHandlerpublic class text_xml extends text_plain
| Constructor | Description |
|---|---|
text_xml() |
| Modifier and Type | Method | Description |
|---|---|---|
protected Object |
getData(ActivationDataFlavor aFlavor,
DataSource ds) |
Given the flavor that matched, return the appropriate type of object.
|
protected ActivationDataFlavor[] |
getDataFlavors() |
Return an array of ActivationDataFlavors that we support.
|
void |
writeTo(Object obj,
String mimeType,
OutputStream os) |
Write the object to the output stream, using the specified MIME type.
|
getTransferData, getTransferDataFlavorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentprotected ActivationDataFlavor[] getDataFlavors()
handler_basegetDataFlavors in class text_plainprotected Object getData(ActivationDataFlavor aFlavor, DataSource ds) throws IOException
handler_basegetData in class handler_baseaFlavor - the ActivationDataFlavords - DataSource containing the dataIOException - for errors reading the datapublic void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
text_plainwriteTo in interface DataContentHandlerwriteTo in class text_plainIOExceptionCopyright © 2018 Oracle. All rights reserved.