




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Program^0110100111101101 00000000 Device
Program reads^ source
a stream
Program writes^ dest
compression, etc.)
java.text package – handles fonts, precision,
internationalism, etc.
FileInputStream
FileOutputStream
byte-oriented I/O (8-bit) binary data machine-readable only
FileReader
FileWriter
char-oriented I/O (16-bit) text data human-readable
RandomAccess binary
key idea: layered objects! start with a stream & wrap other classes around it to add functionality
device to a program
fr.read()
written to or read from a file:
significantly reduced by buffering
fixed sizes