Decorator 在程序运行时生成新的操作,这些新的操作是原有的操作的变体
ISimpleWriter
SimpleStreamWriter
OozinozFilter
LowerCaseFilter
客户代码
类图:The Decorator Pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.