Java DataFlavor.getMimeType()
Syntax
DataFlavor.getMimeType() has the following syntax.
public String getMimeType()
Example
In the following code shows how to use DataFlavor.getMimeType() method.
// w ww . java 2s . c o m
import java.awt.datatransfer.DataFlavor;
public class Main {
public static void main(String[] args) {
DataFlavor df = DataFlavor.stringFlavor;
System.out.println ("Mime type: " + df.getMimeType ());
}
}