23.07.2013 Views

Java IO.pdf - Nguyen Dang Binh

Java IO.pdf - Nguyen Dang Binh

Java IO.pdf - Nguyen Dang Binh

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 17<br />

<strong>Java</strong> I/O<br />

lining up the decimal points in a table of prices, and nontraditional tasks, like<br />

formatting numbers in Egyptian Arabic.<br />

Chapter 17 introduces the <strong>Java</strong> Communications API, a standard extension available<br />

for <strong>Java</strong> 1.1 and later that allows <strong>Java</strong> applications and trusted applets to send and<br />

receive data to and from the serial and parallel ports of the host computer. The <strong>Java</strong><br />

Communications API allows your programs to communicate with essentially any<br />

device connected to a serial or parallel port, like a printer, a scanner, a modem, a tape<br />

backup unit, and so on.<br />

Chapter 1 through Chapter 3 provide the basic background you'll need to do any sort of work<br />

with I/O in <strong>Java</strong>. After that, you should feel free to jump around as your interests take you.<br />

There are, however, some interdependencies between specific chapters. Figure P.1 should<br />

allow you to map out possible paths through the book.<br />

Figure P.1. Chapter prerequisites<br />

A few examples in later chapters depend on material from earlier chapters—for instance,<br />

many examples use the FileInputStream class discussed in Chapter 4—but they should not<br />

be difficult to understand in the large.<br />

7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!