2014年8月11日
摘要: 装饰模式(Decorator)最常见的就是JDK中的关于I/O流的处理。 DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream("test.txt"))); 装饰模式的类... 阅读全文
posted @ 2014-08-11 23:21 lnlvinso 阅读(248) 评论(0) 推荐(0) 编辑