public class text_xml extends text_plain
| Modifier and Type | Field and Description |
|---|---|
private static javax.activation.ActivationDataFlavor[] |
flavors |
| Constructor and Description |
|---|
text_xml() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
getData(javax.activation.ActivationDataFlavor aFlavor,
javax.activation.DataSource ds)
Given the flavor that matched, return the appropriate type of object.
|
protected javax.activation.ActivationDataFlavor[] |
getDataFlavors()
Return an array of ActivationDataFlavors that we support.
|
private boolean |
isXmlType(java.lang.String type) |
void |
writeTo(java.lang.Object obj,
java.lang.String mimeType,
java.io.OutputStream os)
Write the object to the output stream, using the specified MIME type.
|
getContentgetTransferData, getTransferDataFlavorsprotected javax.activation.ActivationDataFlavor[] getDataFlavors()
handler_basegetDataFlavors in class text_plainprotected java.lang.Object getData(javax.activation.ActivationDataFlavor aFlavor,
javax.activation.DataSource ds)
throws java.io.IOException
handler_basegetData in class handler_baseaFlavor - the ActivationDataFlavords - DataSource containing the datajava.io.IOException - for errors reading the datapublic void writeTo(java.lang.Object obj,
java.lang.String mimeType,
java.io.OutputStream os)
throws java.io.IOException
text_plainwriteTo in interface javax.activation.DataContentHandlerwriteTo in class text_plainjava.io.IOExceptionprivate boolean isXmlType(java.lang.String type)