Java DataFlavor .isRepresentation ClassSerializable ()

Syntax

DataFlavor.isRepresentationClassSerializable() has the following syntax.

public boolean isRepresentationClassSerializable()

Example

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


import java.awt.datatransfer.DataFlavor;
/*w ww .j a  v a 2s . c om*/
public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

    System.out.println (df.isRepresentationClassSerializable ());
  }
}




















Home »
  Java Tutorial »
    java.awt.datatransfer »




Clipboard
ClipboardOwner
DataFlavor
Transferable