Java Reference
In-Depth Information
Summary
The java.io package contains useful classes for performing most any
type of input and output.
■■
Most of the classes in the java.io package fit into one of two categories:
streams, and readers or writers. The stream classes are for performing
IO with different data types, and readers and writers are used for per-
forming IO at the character level.
■■
The java.io.OutputStream and java.io.InputStream classes are the par-
ent classes of all the streams. The java.io.Reader and java.io.Writer
classes are the parent classes of all the reader and writer classes.
■■
The classes in the java.io package can be chained together. A low-level
stream is used to communicate with the source of the IO, and high-level
streams can be chained to the low-level stream to perform buffering
and filtering of the data.
■■
Object serialization is a built-in feature of the Java language. It allows
the state of objects to be saved and transmitted to other streams. The
java.io.ObjectOutputStream and java.io.ObjectInputStream classes are
used for performing serialization, and a class must implement the
java.io.Serializable interface for instances of the class to be serialized.
■■
The new Logging APIs provide a mechanism for Java applications to
log certain events and errors.
■■
Search WWH ::




Custom Search