DataFlavor

Name

DataFlavor

[Graphic: Figure from the text]

Description

The 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 Variables

plainTextFlavor

public static DataFlavor plainTextFlavor

A preset DataFlavor object representing plain text.

stringFlavor

public static DataFlavor stringFlavor

A preset DataFlavor object representing a Java String.

Constructors

DataFlavor

public DataFlavor (Class representationClass, String humanPresentableName)

public DataFlavor (String MIMEType, String humanPresentableName)

Instance Methods

equals

public boolean equals (DataFlavor dataFlavor)

getHumanPresentableName

public String getHumanPresentableName()

getMIMEType

public String getMIMEType()

getRepresentationClass

public Class getRepresentationClass()

isMIMETypeEqual

public boolean isMIMETypeEqual (String MIMEType)

public final boolean isMIMETypeEqual (DataFlavor dataFlavor)

setHumanPresentableName

public void setHumanPresentableName (String humanPresentableName)

Protected Instance Methods

normalizeMIMEType

protected String normalizeMIMEType (String MIMEType)

normalizeMIMETypeParameter

protected String normalizeMIMETypeParameter (String parameterName, String parameterValue)

See Also

Class, String