用時(shí)29ms
BufferedInputStream in = new BufferedInputStream(new FileInputStream(srcFile));
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(destFile));
int bytes;
byte[] buf = new byte[1024 * 8];
while ((bytes = in.read(buf)) > -1) {
? ?out.write(buf, 0, bytes);
}
out.flush();
in.close();
out.close();
2015-12-01
嗯嗯 硬盤的速度可以的
2015-05-31
8M文件。