O'Reilly logo

The class of Java by Pravin Jain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required