•data can be characters, Strings,
bytes, objects,…
•Streams connect to file,
terminal, String, net, …
•Always use same methods: read,
write (polymorphism)
•Examples:
–copy: stream of characters, or
of lines (Strings)
–Profile: stream of lines,
program counts kinds
–TV: input stream from cable,
output stream to screen
•