Java Example Program / Sample Source Code
import java.awt.datatransfer.DataFlavor;
public class DataFlavorGetParameter {
public static void main(String[] args) {
// Creating DataFlavor using constructor
DataFlavor dataFlavor = new DataFlavor("text/plain; charset=ASCII", "Plain ASCII text");
// Using getParameter to retrieve charset Value
System.out.println("Parameter Value " + dataFlavor.getParameter("charset"));
}
} |
|
|