public boolean isDataFlavorAvailable (DataFlavor flavor)

Returns whether or not the current contents of this clipboard can be provided in the specified DataFlavor.

Parameters:
flavor    the requested DataFlavor for the contents

Returns:  true if the current contents of this clipboard can be provided in the specified DataFlavor; false otherwise

Exceptions:
NullPointerException    if flavor is null
IllegalStateException    if this clipboard is currently unavailable

Since:  1.5