CHAPTER 14

Input/Output Related Classes

In Java, for the Input/Output(IO) operations, we have two major packages. One is the java.io package, which is available right from Java 1.0, and later from Java 1.4, java.nio and its sub-packages were introduced. The java.nio is not a replacement of the java.io package. Both are different ways of performing IO operations. The java.io package has classes and interfaces which help in file management and stream-based IO, and the java.nio has classes and interfaces for the buffer-based IO. It also has subpackages to support characterset and their encoding and decoding. The important classes and interfaces in the java.io package are given in Table 14.1.

Most of the java.io package is full of sub-classes of ...

Get The class of Java 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.