public abstract Object getTransferData (DataFlavor flavor) throws UnsupportedFlavorException, IOException

Returns an object which represents the data to be transferred. The class of the object returned is defined by the representation class of the flavor.

Parameters:
flavor    the requested flavor for the data

Returns:  an object which represents the data to be transferred

Exceptions:
IOException    if the data is no longer available in the requested flavor
UnsupportedFlavorException    if the requested data flavor is not supported

See also:
DataFlavor.getRepresentationClass