| java.lang.Object | ||
| ↳ | java.awt.datatransfer.DataFlavor | |
| ↳ | com.google.code.javax.activation.ActivationDataFlavor | |
The ActivationDataFlavor class is a special subclass of
java.awt.datatransfer.DataFlavor. It allows the JAF to
set all three values stored by the DataFlavor class via a new
constructor. It also contains improved MIME parsing in the equals
method. Except for the improved parsing, its semantics are
identical to that of the JDK's DataFlavor class.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.datatransfer.DataFlavor
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| humanPresentableName | |||||||||||
| mimeObject | |||||||||||
| mimeType | |||||||||||
| representationClass | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.datatransfer.DataFlavor
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct a DataFlavor that represents an arbitrary
Java object.
| |||||||||||
Construct a DataFlavor that represents a MimeType.
| |||||||||||
Construct a DataFlavor that represents a MimeType.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compares the DataFlavor passed in with this DataFlavor; calls
the
isMimeTypeEqual method. | |||||||||||
Return the Human Presentable name.
| |||||||||||
Return the MIME type for this DataFlavor.
| |||||||||||
Return the representation class.
| |||||||||||
Is the string representation of the MIME type passed in equivalent
to the MIME type of this DataFlavor.
| |||||||||||
Set the human presentable name.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
No replacement.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.datatransfer.DataFlavor
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Externalizable
| |||||||||||
Construct a DataFlavor that represents an arbitrary Java object. This constructor is an extension of the JDK's DataFlavor in that it allows the explicit setting of all three DataFlavor attributes.
The returned DataFlavor will have the following characteristics:
representationClass = representationClass
mimeType = mimeType
humanName = humanName
| representationClass | The class used in this DataFlavor |
|---|---|
| mimeType | The MIME type of the data represented by this class |
| humanPresentableName | The human presentable name of the flavor |
Construct a DataFlavor that represents a MimeType.
The returned DataFlavor will have the following characteristics:
If the mimeType is "application/x-java-serialized-object; class=", the result is the same as calling new DataFlavor(Class.forName()) as above.
otherwise:
representationClass = InputStream
mimeType = mimeType
| representationClass | The class used in this DataFlavor |
|---|---|
| humanPresentableName | The human presentable name of the flavor |
Construct a DataFlavor that represents a MimeType.
The returned DataFlavor will have the following characteristics:
If the mimeType is "application/x-java-serialized-object; class=", the result is the same as calling new DataFlavor(Class.forName()) as above, otherwise:
representationClass = InputStream
mimeType = mimeType
| mimeType | The MIME type of the data represented by this class |
|---|---|
| humanPresentableName | The human presentable name of the flavor |
Compares the DataFlavor passed in with this DataFlavor; calls
the isMimeTypeEqual method.
| dataFlavor | The DataFlavor to compare with |
|---|
Return the Human Presentable name.
Return the MIME type for this DataFlavor.
Return the representation class.
Is the string representation of the MIME type passed in equivalent to the MIME type of this DataFlavor.
ActivationDataFlavor delegates the comparison of MIME types to the MimeType class included as part of the JavaBeans Activation Framework. This provides a more robust comparison than is normally available in the DataFlavor class.
| mimeType | The MIME type |
|---|
Set the human presentable name.
| humanPresentableName | The name to set |
|---|
This method is deprecated.
No replacement.
Called for each MIME type string to give DataFlavor subtypes the opportunity to change how the normalization of MIME types is accomplished. One possible use would be to add default parameter/value pairs in cases where none are present in the MIME type string passed in. This method is never invoked by this implementation.
| mimeType | The MIME type |
|---|
This method is deprecated.
No replacement.
Called on DataFlavor for every MIME Type parameter to allow DataFlavor subclasses to handle special parameters like the text/plain charset parameters, whose values are case insensitive. (MIME type parameter values are supposed to be case sensitive).
This method is called for each parameter name/value pair and should return the normalized representation of the parameterValue. This method is never invoked by this implementation.
| parameterName | The parameter name |
|---|---|
| parameterValue | The parameter value |