Java Reference
In-Depth Information
FIGURE 4.3
The input streams of the java.io package
InputStream
ByteArrayInputStream
FileInputStream
ObjectInputStream
PipedInputStream
SequenceInputStream
StringBufferInputStream
FilterInputStream
BufferedInputStream
DataInputStream
PushbackInputSteam
The output streams of the java.io package
FIGURE 4.4
OutputStream
ByteArrayOutputStream
FileOutputStream
ObjectOutputStream
PipedOutputStream
FilterOutputStream
BufferedOutputStream
DataOutputStream
PrintStream
If you are dealing with data that includes other types than just strings or characters, use
the input and output streams shown in Figures 4.3 and 4.4. However, if the data you are
streaming is either characters or strings, use the reader and writer classes shown in Figures
4.5 and 4.6. Notice the readers subclass, the abstract Reader class, and the writers subclass,
the Writer class.
FIGURE 4.5
The reader classes of the java.io package
Reader
BufferedReader
CharArrayReader
PipedReader
StringReader
InputStreamReader
FileReader
FilterReader
PushbackReader
Search WWH ::




Custom Search