本帖最后由 曹自祥 于 2012-11-19 16:19 编辑  
- package pt;
 
  
- import java.io.*;
 
  
- public class BufferTest {
 
  
-         /**
 
 -          * @param args
 
 -          * @throws FileNotFoundException 
 
 -          */
 
 -         public static void main(String[] args) throws FileNotFoundException {
 
 -                 File f=new File("F:\\test.txt");//文件F:\\test.txt大小是10M
 
 -                 FileInputStream fis=new FileInputStream(f);
 
 -                 BufferedInputStream bis=new BufferedInputStream(fis,1024);//fis对应的文件大于1024B,这样的代码会有问题吗?
 
 -         }
 
  
- }
 
 
  复制代码 |