<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta charset="UTF-8"> <title>Title</title> <style> .container { p
package cn.hncu.pattern.decorator.v1; import java.io.FileReader;import java.io.IOException; public class MyBufferedReader { private FileReader r;//封装或组合一个对象 private char[]cbuf = new char[1024]; private int count=0;//记录缓冲区中字符的个数 100 private int pos=0;