摘要:
java 大文件读取的理解: 1 //定义读取字节 2 int bufSize = 1024; 3 4 byte[] bs = new byte[bufSize]; 5 //创建缓存区 6 ByteBuffer byteBuf = ByteBuffer.allocate(bufSize); 7 //文件读取 8 FileChannel channel = new RandomAccessFile("d:\\111.txt", "r").getChannel(); ... 阅读全文
posted @ 2012-03-28 15:33
Waising
阅读(386)
评论(0)
推荐(1)