Example usage for Java javax.activation DataHandler fields, constructors, methods, implement or subclass
The text is from its open source code.
DataHandler(DataSource ds) Create a DataHandler instance referencing the specified DataSource. | |
DataHandler(URL url) Create a DataHandler instance referencing a URL. | |
DataHandler(Object obj, String mimeType) Create a DataHandler instance representing an object of this MIME type. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
Object | getBean(CommandInfo cmdinfo) A convenience method that takes a CommandInfo object and instantiates the corresponding command, usually a JavaBean component. |
CommandInfo | getCommand(String cmdName) Get the command cmdName. |
Object | getContent() Return the data in its preferred Object form. |
String | getContentType() Return the MIME type of this object as retrieved from the source object. |
DataSource | getDataSource() Return the DataSource associated with this instance of DataHandler. |
InputStream | getInputStream() Get the InputStream for this object. |
String | getName() Return the name of the data object. |
String | toString() Returns a string representation of the object. |
void | writeTo(OutputStream os) Write the data to an OutputStream .If the DataHandler was created with a DataSource, writeTo retrieves the InputStream and copies the bytes from the InputStream to the OutputStream passed in. |