Java Swing Tutorial - 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 w w . j  a  v a2 s.co m*/
public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

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

The code above generates the following result.