public boolean isDataFlavorSupported(DataFlavor flavor){
  return flavor.equals(getTransferDataFlavors()[0]);
}

public boolean isDataFlavorSupported ( DataFlavor flavor ) { return flavor . equals ( getTransferDataFlavors ( ) [ 0 ] ) ; }
returns whether or not the specified data flavor is supported for this object .
