-
What is an IO stream? what is a source? a sink? What is an
input stream? what is an output stream?
-
What is the difference between a basic (simple, primitive) IO
stream versus a filtered (or higher level) IO stream? Basic ones only do
IO one unit at a time (a data unit is either one byte or one character).
Higher level streams can do IO for larger groupings (of basic units) at a
time.
-
Understand why IO commands can generate IOExceptions? Know
that you need to put these in try-catch blocks. Know how to write these.
-
What do we mean by a byte-oriented IO Stream? what does this do
for input? for output?
-
What are the primary (simple) byte oriented streams?
(InputStream, OutputStream). What are their key methods? (InputStream:
int read( ), void close( ); OutputStream void write( int), void close( )).
-
What are the main higher level byte oriented IO streams?
What is a BufferedInputStream? BufferedOutputStream? DataInputStream?
etc. Examples? See slides 4-7.
-
What do we mean by the term character (text) oriented
stream? what does this do for input? for output? what conversions
occur?
-
What are the primary (simple) character oriented input/output
streams (Reader, Writer)? What are the basic methods of Reader and
Writer? (Reader: int read( ), void close( ), Writer: void write(int),
void close( )).
-
What is an InputStreamReader? an OutputStream Writer?
Know how to go from a byte oriented stream to a character oriented stream.
-
What is a FileReader? FileWriter?
BufferedReader? PrintWriter? Examples? (see slides 12,13,14). What
is the readLine( ) command for BufferReader? what does it do? Similarly
explain println( ) for PrintWriter.