Provides classes for input and output through data streams.
Interfaces
DataInput |
The DataInput interface provides for reading bytes from a binary
stream and reconstructing from them data in any of the Java primitive types. |
DataOutput |
The DataOutput interface provides for converting data from any
of the Java primitive types to a series of bytes and writing these bytes to a
binary stream. |
Flushable |
Indicates that an output object can be flushed. |
Serializable |
Serializability of a class is enabled by the class implementing the
java.io.Serializable interface. |
Classes
ByteArrayInputStream |
A ByteArrayInputStream contains an internal buffer that contains
bytes that may be read from the stream. |
ByteArrayOutputStream |
This class implements an output stream in which the data is written into a
byte array. |
DataInputStream |
A data input stream lets an application read primitive Java data types from
an underlying input stream in a machine-independent way. |
DataOutputStream |
A data input stream lets an application write primitive Java data types to an
output stream in a portable way. |
FilterInputStream |
Wraps an existing InputStream and performs some transformation on the
input data while it is being read. |
FilterOutputStream |
Wraps an existing OutputStream and performs some transformation on
the output data while it is being written. |
InputStream |
This abstract class is the superclass of all classes representing an input
stream of bytes. |
InputStreamReader |
An InputStreamReader is a bridge from byte streams to character streams: It
reads bytes and translates them into characters. |
OutputStream |
This abstract class is the superclass of all classes representing an output
stream of bytes. |
OutputStreamWriter |
An OutputStreamWriter is a bridge from character streams to byte streams:
Characters written to it are translated into bytes. |
PrintStream |
A PrintStream adds functionality to another output stream,
namely the ability to print representations of various data values
conveniently. |
Reader |
Abstract class for reading character streams. |
Writer |
Abstract class for writing to character streams. |
Exceptions