public class text_xml extends text_plain
| Constructor and Description |
|---|
text_xml() |
| Modifier and Type | Method and 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.
|
getContentgetTransferData, getTransferDataFlavorsprotected ActivationDataFlavor[] getDataFlavors()
handler_basegetDataFlavors in class text_plainprotected Object getData(ActivationDataFlavor aFlavor, DataSource ds) throws IOException
handler_basegetData in class handler_baseIOExceptionpublic void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
text_plainwriteTo in interface DataContentHandlerwriteTo in class text_plainobj - The object to be converted.mimeType - The requested MIME type of the resulting byte stream.os - The output stream into which to write the converted
byte stream.IOException - errors writing to the streamCopyright © 2017 JBoss by Red Hat. All rights reserved.