Section
11 : The java.io Package
Select valid constructor arguments for
FilterInputStream and FilterOutputStream subclasses
from a list of classes in the java.io.package.
FilterInputStream
This class contains some
other input stream, which it uses as a basic source of
data. It simply overrides all methods of InputStream.
Valid constructors of
some of the subclasses of this class:
FilterOutputStream
This class contains some
other output stream, which it uses as a basic source
of data. It simply overrides all methods of
OutputStream.
Valid constructors of
some of the subclasses of this class:
PrintStream never throws
IOException. It provides print (), println () for all
types.
The main point to keep
in mind here is that you must be able to recognize the
subclasses of InputStream and OutputStream. So, you
must know the hierarchy of these classes.
InputStream
-
ByteArrayInputStream
-
FileInputStream
-
PipedInputStream
-
FilterInputStream
-
BufferedInputStream
-
PushbackInputStream
-
DataInputStream
-
ObjectInputStream
OutputStream
-
ByteArrayOutputStream
-
FileOutputStream
-
PipedOutputStream
-
FilterOutputStream
-
BufferedOutputStream
-
PrintStream
-
DataOutputStream
-
ObjectOutputStream
section11-1 | section11-2 | section11-3 | section11-4 | section11-5 | section11-6
Sections :
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11
|