使用缓冲流实现复制视频
public class CopyVido {
public static void main(String[] args) throws IOException {
long begin = System.currentTimeMillis();
//byteArrayCopy();//3306
buffStreamCopy();//1167
long end = System.currentTimeMillis();
System.out.println(end - begin);
}
// 每次读取一个字节数组
public static void byteArrayCopy() throws IOException {
FileInputStream fis = new FileInputStream("d:\\IO\\os\\Java高级- 23.avi");