Java Swing Tutorial - Java DataFlavor .isRepresentation ClassInputStream ()








Syntax

DataFlavor.isRepresentationClassInputStream() has the following syntax.

public boolean isRepresentationClassInputStream()

Example

In the following code shows how to use DataFlavor.isRepresentationClassInputStream() method.

/*from   w  w  w.j av  a  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.isRepresentationClassInputStream ());
  }
}

The code above generates the following result.