O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

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

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:

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