Chapter 12. I/O in Java
This chapter introduces you to the techniques for performing input and output and dealing with files in Java. The classes to support I/O in Java are primarily in the package java.io. This package contains a lot of stream classes—some that are fairly common, and some that are used relatively rarely. This chapter focuses on the most common or important I/O classes and techniques.
Before proceeding, let me make a clarification of terminology in this chapter. When I say InputStream or OutputStream, I am referring to those two specific classes. When I say "input stream" or "output stream," I am referring to any class that is a subclass of InputStream or OutputStream. Likewise, there are the Reader and Writer classes, and
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access