SLIDE 1
Duke CPS 108
- 25. 1
Streams and Readers
- The stream hierarchy is for reading bytes, the reader/writer
hierarchy is for reading characters
➤ Unicode characters can be used internationally, variety of
languages/characters, the future beyond ASCII
➤ bytes are used on most machines for external storage,
convenient also for storing raw objects/values, e.g., int stored as 0x000000ff vs “255”
- More than 50 input/output streams readers/writers