Summary

You learned how to work with streams today in two different directions: pulling data into a program over an input stream and sending data out of a program using an output stream.

You used byte streams for many types of nontextual data and character streams to handle text. Filters were associated with streams to alter the way information was delivered through a stream, or to alter the information itself.

Today's lesson covers most java.io package classes, but there are other types of streams you might want to explore. Piped streams are useful when communicating data between different threads, and byte array streams can connect programs to a computer's memory.

Because the stream classes in Java are so closely coordinated, you already possess ...

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.