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


DataFlavor.isRepresentationClassByteBuffer() has the following syntax.

public boolean isRepresentationClassByteBuffer()


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.