03 2012 档案
摘要: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(); ...
阅读全文
浙公网安备 33010602011771号