javax.activation.DataContentHandler
public class text_xml extends text_plain
Constructor | Description |
---|---|
text_xml() |
Modifier and Type | Method | 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.
|
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.
|
getTransferData, getTransferDataFlavors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContent
protected javax.activation.ActivationDataFlavor[] getDataFlavors()
handler_base
getDataFlavors
in class text_plain
protected java.lang.Object getData(javax.activation.ActivationDataFlavor aFlavor, javax.activation.DataSource ds) throws java.io.IOException
handler_base
getData
in class handler_base
aFlavor
- 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_plain
writeTo
in interface javax.activation.DataContentHandler
writeTo
in class text_plain
java.io.IOException
Copyright © 2018 Oracle. All rights reserved.