public class text_plain extends handler_base
| Modifier and Type | Class and Description |
|---|---|
private static class |
text_plain.NoCloseOutputStream
An OuputStream wrapper that doesn't close the underlying stream.
|
| Modifier and Type | Field and Description |
|---|---|
private static javax.activation.ActivationDataFlavor[] |
myDF |
| Constructor and Description |
|---|
text_plain() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
getCharset(java.lang.String type) |
java.lang.Object |
getContent(javax.activation.DataSource ds) |
protected javax.activation.ActivationDataFlavor[] |
getDataFlavors()
Return an array of ActivationDataFlavors that we support.
|
void |
writeTo(java.lang.Object obj,
java.lang.String type,
java.io.OutputStream os)
Write the object to the output stream, using the specified MIME type.
|
getData, getTransferData, getTransferDataFlavorsprotected javax.activation.ActivationDataFlavor[] getDataFlavors()
handler_basegetDataFlavors in class handler_basepublic java.lang.Object getContent(javax.activation.DataSource ds)
throws java.io.IOException
java.io.IOExceptionpublic void writeTo(java.lang.Object obj,
java.lang.String type,
java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionprivate java.lang.String getCharset(java.lang.String type)