public synchronized Transferable getContents (Object requestor)

Returns a transferable object representing the current contents of the clipboard. If the clipboard currently has no contents, it returns null. The parameter Object requestor is not currently used. The method throws IllegalStateException if the clipboard is currently unavailable. For example, on some platforms, the system clipboard is unavailable while it is accessed by another application.

Parameters:
requestor    the object requesting the clip data (not used)

Returns:  the current transferable object on the clipboard

Exceptions:
IllegalStateException    if the clipboard is currently unavailable

See also:
java.awt.Toolkit.getSystemClipboard