Java Swing Tutorial - Java DataFlavor .is Representation Class Byte Buffer ()








Syntax

DataFlavor.isRepresentationClassByteBuffer() has the following syntax.

public boolean isRepresentationClassByteBuffer()

Example

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

import java.awt.datatransfer.DataFlavor;
/*from   w  w  w  . j  a  va 2 s .  c o  m*/
public class Main {

  public static void main(String[] args) {

    DataFlavor df = DataFlavor.stringFlavor;

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

The code above generates the following result.