public DataHandler (Object obj, String mimeType)

Create a DataHandler instance representing an object of this MIME type. This constructor is used when the application already has an in-memory representation of the data in the form of a Java Object.

Parameters:
obj    the Java Object
mimeType    the MIME type of the object