DataFlavorNameDataFlavor
DescriptionThe DataFlavor class encapsulates information about data formats. Class Definition
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); } Class VariablesplainTextFlavorpublic static DataFlavor plainTextFlavorA preset DataFlavor object representing plain text. stringFlavorpublic static DataFlavor stringFlavorA preset DataFlavor object representing a Java String. ConstructorsDataFlavorpublic DataFlavor (Class representationClass, String humanPresentableName)
public DataFlavor (String MIMEType, String humanPresentableName)
Instance Methodsequalspublic boolean equals (DataFlavor dataFlavor)
getHumanPresentableNamepublic String getHumanPresentableName()
getMIMETypepublic String getMIMEType()
getRepresentationClasspublic Class getRepresentationClass()
isMIMETypeEqualpublic boolean isMIMETypeEqual (String MIMEType)
public final boolean isMIMETypeEqual (DataFlavor dataFlavor)
setHumanPresentableNamepublic void setHumanPresentableName (String humanPresentableName)
Protected Instance MethodsnormalizeMIMETypeprotected String normalizeMIMEType (String MIMEType)
normalizeMIMETypeParameterprotected String normalizeMIMETypeParameter (String parameterName, String parameterValue)
See AlsoClass, String |
|