September 2011
Beginner
650 pages
15h 47m
English
We will begin our examination of Java’s I/O with the byte streams. As explained, at the top of the byte stream hierarchy are the InputStream and OutputStream classes. Table 10-3 shows the methods in InputStream, and Table 10-4 shows the methods in OutputStream. In general, the methods in InputStream and OutputStream can throw an IOException on error. The methods defined by these two abstract classes are available to all of their subclasses. Thus, they form a minimal set of I/O functions that all byte streams will have.

Table 10-3 The Methods Defined by InputStream
Table 10-4 The Methods Defined by OutputStream
Read now
Unlock full access