Java DataFlavor .getRepresentationClass ()
Syntax
DataFlavor.getRepresentationClass() has the following syntax.
public Class<?> getRepresentationClass()
Example
In the following code shows how to use DataFlavor.getRepresentationClass() method.
/*from w ww . j a va 2 s . c o m*/
import java.awt.datatransfer.DataFlavor;
public class Main {
public static void main(String[] args) {
DataFlavor df = DataFlavor.stringFlavor;
System.out.println (df.getRepresentationClass ());
}
}