Java Reference
In-Depth Information
Table 3−1. Byte Input Streams (continued)
Byte Input Stream
Description
This class is deprecated as of Java 1.1; use
StringReader instead.
StringBufferInputStream
This java.util.zip class uncompresses entries in a
ZIP file.
ZipInputStream
Table 3−2. Character Input Streams
Character Input Stream
Description
BufferedReader
Reads a buffer of characters from a Reader , and
then returns characters from the buffer, making
small reads more efficient.
CharArrayReader
Reads characters sequentially from an array.
FileReader
Reads characters sequentially from a file. An
InputStreamReader subclass that reads from an
automatically-created FileInputStream .
FilterReader
The superclass of character input stream filter
classes.
InputStreamReader
Reads characters from a byte input stream.
Converts bytes to characters using the encoding of
the default locale, or a specified encoding.
LineNumberReader
Reads lines of text and keeps track of how many
have been read.
PipedReader
Reads characters written to the PipedWriter to
which it is connected. Used in multithreaded
programs.
PushbackReader
Adds a fixed-size pushback buffer to a Reader ,so
that characters can be unread. Useful with some
parsers.
Reader
The superclass of all character input streams.
StringReader
Reads characters sequentially from a string.
Table 3−3. Byte Output Streams
Byte Output Stream
Description
Buffers byte output for efficiency; writes to an
OutputStream only when the buffer fills up.
BufferedOutputStream
Writes bytes sequentially into an array.
ByteArrayOutputStream
This java.util.zip class computes a checksum of
the bytes it writes to an OutputStream .
CheckedOutputStream
Search WWH ::




Custom Search