Java Example Program/ Sample Source Code
import java.awt.datatransfer.DataFlavor;
public class GetRepresentationClassOfDataFlavor {
public static void main(String[] args) {
DataFlavor dataFlavor = DataFlavor.stringFlavor;
System.out.println("Mime type: " + dataFlavor.getMimeType());
System.out.println("Primary type: " + dataFlavor.getPrimaryType());
System.out.println("Subtype: " + dataFlavor.getSubType());
System.out.println("HumanPresentableName: " + dataFlavor.getHumanPresentableName());
System.out.println("DefaultRepresentationClass: " + dataFlavor.getDefaultRepresentationClassAsString());
System.out.println("Class Type: " + dataFlavor.getRepresentationClass() + "\n");
}
} |
|
|