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, getTransferDataFlavors
protected javax.activation.ActivationDataFlavor[] getDataFlavors()
handler_base
getDataFlavors
in class handler_base
public java.lang.Object getContent(javax.activation.DataSource ds) throws java.io.IOException
java.io.IOException
public void writeTo(java.lang.Object obj, java.lang.String type, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
private java.lang.String getCharset(java.lang.String type)