public Object getData (DataFlavor flavor) throws UnsupportedFlavorException, IOException

Returns an object representing the current contents of this clipboard in the specified DataFlavor. The class of the object returned is defined by the representation class of flavor.

Parameters:
flavor    the requested DataFlavor for the contents

Returns:  an object representing the current contents of this clipboard in the specified DataFlavor

Exceptions:
NullPointerException    if flavor is null
IllegalStateException    if this clipboard is currently unavailable
UnsupportedFlavorException    if the requested DataFlavor is not available
IOException    if the data in the requested DataFlavor can not be retrieved

See also:
DataFlavor.getRepresentationClass

Since:  1.5