Java Reference
In-Depth Information
20.2. Byte Streams
The java.io package defines abstract classes for basic byte input and out-
put streams. These abstract classes are then extended to provide sever-
al useful stream types. Stream types are almost always paired: For ex-
ample, where there is a FileInputStream to read from a file, there is usu-
ally a FileOutputStream to write to a file.
Before you can learn about specific kinds of input and output byte
streams, it is important to understand the basic InputStream and Out-
putStream abstract classes. The type tree for the byte streams of java.io
in Figure 20-1 shows the type hierarchy of the byte streams.
 
Search WWH ::




Custom Search