我是个java初学者,写了一段代码,但是输出结果很令我吃惊,请大家指教:
package IO.src;import java.io.*;public class BufferedInputStreamTest extends BufferedInputStream{

public BufferedInputStreamTest(InputStream in ,int size){

super(in);

byte buf[]=new byte[size];

this.count=size;

System.out.print(super.count);


}

public static void main(String args[])throws IOException{

File f=new File("g:\\iinn.txt");

FileInputStream in=new FileInputStream(f);

BufferedInputStreamTest bt=new BufferedInputStreamTest(in,2);

while(bt.available()>0){

byte b[]=new byte[8];

bt.read(b);

System.out.println(new String(b));


}
System.out.println("缓冲区大小为:"+bt.count+"...");


}}
输出结果为:super.count=2; bt.count=48;为什么会是这样?还有就是 read(byte[])方法是从数据流中读取制定个数得到数组中还是从缓冲数组BufferedInputStream 的buf[]中读取?