Chapter 17. Simple Input Output

  • Design Philosophy

  • The Class java.io.File

  • Keyboard I/O

  • Output

  • Wrapping Additional Output Classes

  • Input

  • Reader Wrappers

  • Inputting ASCII Characters and Binary Values

  • Input Stream Wrappers

  • Further Reading

  • Exercises

  • Some Light Relief—The Illegal Prime Number!

SCSI-wuzzy was a bus.

SCSI-wuzzy caused no fuss.

SCSI-wuzzy wasn't very SCSI, was he?

Designing input/output (henceforth “I/O”) libraries is a lot harder than it might appear. There have been some spectacular blunders in the past. One language, Algol 60, gave up on I/O altogether, leaving it out of the language specification and making it an implementation-defined detail! Pascal has the deficiency that you can't test for end-of-file until you ...

Get Just Java™ 2 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.