Java tutorial
import java.awt.datatransfer.DataFlavor; public class Main { public static void main(String[] args) { DataFlavor df1 = new DataFlavor("text/plain; charset=ASCII", "Plain ASCII text"); System.out.println(df1.getParameter(df1.getHumanPresentableName())); } }