SE450: The ADAPTER Pattern [9/55] |
Name in
Design Pattern |
Actual Name
(Stream->Reader) |
Adaptee |
InputStream |
Target |
Reader |
Adapter |
InputStreamReader |
Client |
The class that wants to read
text from an input stream |
targetMethod() |
read
(reading a character) |
adapteeMethod() |
read (reading a byte) |