Data Transfer Mechanism

Now that we've introduced the basics of data transfer and manipulating a clipboard and provided a simple example of cutting and pasting text to/from the system clipboard, let's take a closer look at the data transfer mechanism.

Data Flavors

No, you cannot taste data; flavor, in this case, can be thought of as a synonym for format. One data flavor for an image, for instance, might be a java.awt.Image; another flavor for an image might be an array of pixels representing the image in question.

Data flavors actually fall into two general categories:

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.