Java javax.activation DataHandler fields, constructors, methods, implement or subclass

Example usage for Java javax.activation DataHandler fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.activation DataHandler.

The text is from its open source code.

Subclass

javax.activation.DataHandler has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ObjectgetBean(CommandInfo cmdinfo)
A convenience method that takes a CommandInfo object and instantiates the corresponding command, usually a JavaBean component.
CommandInfogetCommand(String cmdName)
Get the command cmdName.
ObjectgetContent()
Return the data in its preferred Object form.
StringgetContentType()
Return the MIME type of this object as retrieved from the source object.
DataSourcegetDataSource()
Return the DataSource associated with this instance of DataHandler.
InputStreamgetInputStream()
Get the InputStream for this object.
StringgetName()
Return the name of the data object.
StringtoString()
Returns a string representation of the object.
voidwriteTo(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.