?????????Decorator????????????????ε????
????Work squarePeg = new SquarePeg();
????Work decorator = new Decorator(squarePeg);
????decorator.insert();
????Decorator????????ɡ?
?????????????????????????????????????????????
????FileReader fr = new FileReader(filename);
????BufferedReader br = new BufferedReader(fr);
?????????Java ??I/O API?????Decorator?????I/O????????????????з??????????????????????????????
????Jive?е?Decorator???
????????????У???Щ???????????????????????"??XXX"???????????????Щ"????"?????塣????????????????????????
??????IBM Java?????????Jive???????У??????Jive??ForumMessageFilter.java?????Decorator??????????ó?????????????Decorator??????????????????????????????????????????????????????ForumMessageFilter???Decorator?????
??????????????????????????Decorator????????????????Decorator?????????????Decorator??????壬??????в??????(Decoratee ??Decorator)??