Located in compilation unit of jakarta.
| Modifier and Type | Field and Description |
|---|---|
| private DataContentHandler | |
| private String | |
| private Object | |
| private ActivationDataFlavor[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getContent(DataSource
The DataSource representing the data to be converted. ds)Implements jakarta. |
| public DataContentHandler | |
| public Object | Returns: the constructed Objectthe ActivationDataFlavor df, DataSource the DataSource ds)Implements jakarta. |
| public synchronized ActivationDataFlavor[] | Returns: the ActivationDataFlavorsImplements jakarta. DataContentHandler.
|
| public void | writeTo(Object
The object to be converted. obj, String The requested MIME type of the resulting byte stream. mimeType, OutputStream The output stream into which to write the converted
byte stream. os)Implements jakarta. |
| dch | back to summary |
|---|---|
| private DataContentHandler dch | |
| mimeType | back to summary |
|---|---|
| private String mimeType | |
| obj | back to summary |
|---|---|
| private Object obj | |
| transferFlavors | back to summary |
|---|---|
| private ActivationDataFlavor[] transferFlavors | |
| ObjectDataContentHandler | back to summary |
|---|---|
| public ObjectDataContentHandler(DataContentHandler dch, Object obj, String mimeType) The constructor. | |
| getContent | back to summary |
|---|---|
| public Object getContent(DataSource ds) Implements jakarta. Doc from jakarta. Return an object representing the data in its most preferred form.
Generally this will be the form described by the first
ActivationDataFlavor returned by the
| |
| getDCH | back to summary |
|---|---|
| public DataContentHandler getDCH() Return the DataContentHandler for this object. Used only by the DataHandler class. | |
| getTransferData | back to summary |
|---|---|
| public Object getTransferData(ActivationDataFlavor df, DataSource ds) throws IOException Implements jakarta. Return the Transfer Data of type ActivationDataFlavor from InputStream.
| |
| getTransferDataFlavors | back to summary |
|---|---|
| public synchronized ActivationDataFlavor[] getTransferDataFlavors() Implements jakarta. Return the ActivationDataFlavors for this
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException Implements jakarta. Write the object to the output stream.
| |