The DataFlavor class encapsulates information about data formats.
public class java.awt.datatransfer.DataFlavor extends java.lang.Object { // Class Variables public static DataFlavor plainTextFlavor; public static DataFlavor stringFlavor; // Constructors public DataFlavor (Class representationClass, String humanPresentableName); public DataFlavor (String MIMEType, String humanPresentableName); // Instance Methods public boolean equals (DataFlavor dataFlavor); public String getHumanPresentableName(); public String getMIMEType(); public Class getRepresentationClass(); public boolean isMIMETypeEqual (String MIMEType); public final boolean isMIMETypeEqual (DataFlavor dataFlavor); public void setHumanPresentableName (String humanPresentableName); // Protected Instance Methods protected String normalizeMIMEType (String MIMEType); protected String normalizeMIMETypeParameter (String parameterName, String parameterValue); }
A preset DataFlavor object representing plain text.
A preset DataFlavor object representing a Java String.
The Java class that represents data in this flavor.
A name for this flavor that humans will recognize.
Constructs a DataFlavor object with the given characteristics. The MIME type for this DataFlavor is application/x-java-serialized-object <Java ClassName>.[1]
[1] The type name changed to x-java-serialized-object in the 1.1.1 release.
The MIME type string this DataFlavor represents.
A name for this flavor that humans will recognize.
Constructs a DataFlavor object with the given characteristics. The representation class used for this DataFlavor is java.io.InputStream.
The flavor to compare.
true if dataFlavor is equivalent to this DataFlavor, false otherwise.
Compares two different DataFlavor instances for equivalence.
The name of this flavor.
The MIME type string for this flavor.
The Java class that will be used to represent data in this flavor.
The type to compare.
true if the given MIME type is the same as this DataFlavor's MIME type; false otherwise.
Compares two different DataFlavor MIME types for equivalence.
The flavor to compare.
true if DataFlavor's MIME type is the same as this DataFlavor's MIME type; false otherwise.
Compares two different DataFlavor MIME types for equivalence.
A name for this flavor that humans will recognize.
Changes the name of the DataFlavor.
The MIME type string to normalize.
Normalized MIME type string.
This method is called for each MIME type string. Subclasses can override this method to add default parameter/value pairs to MIME strings.
The MIME type parameter to normalize.
The corresponding value.
Normalized MIME type parameter string.
This method is called for each MIME type parameter string. Subclasses can override this method to handle special parameters, such as those that are case-insensitive.
Class, String
This HTML Help has been published using the chm2web software. |