java.lang.Object | +--javax.activation.DataHandlerAll Implemented Interfaces:
Constructor in which the data is read from a data source. |
DataHandler(Object obj, String mimeType) Constructor using a reified object representation. |
DataHandler(URL url) Constructor in which the data is read from a URL. |
Returns the complete list of commands for this type of data. | |
Object | getBean(CommandInfo cmdInfo) Returns the instantiated bean using the specified command. |
getCommand(String cmdName) Returns the specified command. | |
Object | Returns the data as a reified object. |
String | Returns the MIME type of the data (with parameters). |
Returns the data source from which data is read. | |
InputStream | Returns an input stream from which the data can be read. |
String | getName() Returns the name of the data object if created with a DataSource. |
OutputStream | Returns an output stream that can be used to overwrite the underlying data, if the DataSource constructor was used. |
Returns the preferred commands for this type of data. | |
Object | getTransferData(DataFlavor flavor) Returns an object representing the data to be transferred. |
synchronized DataFlavor[] | Returns the data flavors in which this data is available. |
boolean | isDataFlavorSupported(DataFlavor flavor) Indicates whether the specified data flavor is supported for this data. |
synchronized void | setCommandMap(CommandMap commandMap) Sets the command map to be used by this data handler. |
static synchronized void | setDataContentHandlerFactory(DataContentHandlerFactory newFactory) Sets the data content handler factory. |
void | writeTo(OutputStream os) Writes the data as a byte stream. |
public DataHandler(Object obj, String mimeType)
public DataHandler(URL url)
public DataHandler(DataSource ds)
public CommandInfo[] getAllCommands()
public Object getBean(CommandInfo cmdInfo)
public CommandInfo getCommand(String cmdName)
public Object getContent()
public String getContentType()
public DataSource getDataSource()
public InputStream getInputStream()
public String getName()
public OutputStream getOutputStream()
public CommandInfo[] getPreferredCommands()
public Object getTransferData(DataFlavor flavor)
public synchronized DataFlavor[] getTransferDataFlavors()
public boolean isDataFlavorSupported(DataFlavor flavor)
public synchronized void setCommandMap(CommandMap commandMap)
public static synchronized void setDataContentHandlerFactory(DataContentHandlerFactory newFactory)
public void writeTo(OutputStream os)