| 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 ActivationDataFlavor[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public Object | getContent(DataSource
The DataSource representing the data to be converted. ds)Implements javax. |
| protected ActivationDataFlavor[] | getDataFlavors()
Implements abstract com. |
| public void | writeTo(Object
The object to be converted. obj, String The requested MIME type of the resulting byte stream. type, OutputStream The output stream into which to write the converted
byte stream. os)Implements javax. |
| myDF | back to summary |
|---|---|
| private static ActivationDataFlavor[] myDF | |
| text_plain | back to summary |
|---|---|
| public text_plain() | |
| getCharset | back to summary |
|---|---|
| private String getCharset(String type) | |
| getContent | back to summary |
|---|---|
| public Object getContent(DataSource ds) throws IOException Implements javax. Doc from javax. Return an object representing the data in its most preferred form.
Generally this will be the form described by the first DataFlavor
returned by the
| |
| getDataFlavors | back to summary |
|---|---|
| protected ActivationDataFlavor[] getDataFlavors() Implements abstract com. Doc from com. Return an array of ActivationDataFlavors that we support. Usually there will be only one.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(Object obj, String type, OutputStream os) throws IOException Implements javax. Write the object to the output stream, using the specified MIME type.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| NoCloseOutputStream | back to summary |
|---|---|
| public NoCloseOutputStream(OutputStream os) | |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |