/*
Mime type: text/plain; class=java.io.InputStream; charset=ASCII
Primary type: text
Subtype: plain
Parameter: ASCII
Name: Plain ASCII text
Representation class: class java.io.InputStream
*/
import java.awt.datatransfer.DataFlavor;
public class MainClass {
public static void main(String[] args) {
DataFlavor df = new DataFlavor("text/plain; charset=ASCII", "Plain ASCII text");
System.out.println("Mime type: " + df.getMimeType());
System.out.println("Primary type: " + df.getPrimaryType());
System.out.println("Subtype: " + df.getSubType());
System.out.println("Parameter: " + df.getParameter("charset"));
System.out.println("Name: " + df.getHumanPresentableName());
String s = df.getRepresentationClass().toString();
System.out.println("Representation class: " + s + "\n");
}
}
|