O'Reilly logo

Core Java® Volume II—Advanced Features, Ninth Edition by Gary Cornell, Cay S. Horstmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.13.1. Classes and Interfaces for Data Transfer

Data transfer in Java is implemented in a package called java.awt.datatransfer. Here is an overview of the most important classes and interfaces of that package:

• Objects that can be transferred via a clipboard must implement the Transferable interface.

• The Clipboard class describes a clipboard. Transferable objects are the only items that can be put on or taken off a clipboard. The system clipboard is a concrete example of a Clipboard.

• The DataFlavor class describes data flavors that can be placed on the clipboard.

• The StringSelection class is a concrete class that implements the Transferable interface. It transfers text strings.

• A class must implement the ClipboardOwner interface if ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required