Day 17. Handling Data Through Java Streams

Many of the programs you create with Java will need to interact with some kind of data source. There are countless ways in which information can be stored on a computer, including files on a hard drive or CD-ROM, pages on a Web site, and even the computer's memory itself.

You might expect there to be a different technique to handle each of the different storage devices. Fortunately, that isn't the case.

In Java, information can be stored and retrieved using a communications system called streams, which are implemented in the java.io package.

Today, you learn how to create input streams to read information and output streams to store information. You'll work with each of the following:

  • Byte streams, which ...

Get Sams Teach Yourself Java 2 in 21 Days, Second 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.