previous
|
start
|
next
The ADAPTER Pattern
In stream library
Input streams read bytes
Readers read characters
Non-ASCII encoding: multiple bytes per char
System.in is a stream
What if you want to read characters?
Adapt stream to reader
InputStreamReader
previous
|
start
|
next