()
| 76 | |
| 77 | // ��Ч�ֽ���һ�ζ�дһ���ֽ����� |
| 78 | public static void method4() throws IOException { |
| 79 | BufferedInputStream bis = new BufferedInputStream(new FileInputStream( |
| 80 | "d:\\��������.mp4")); |
| 81 | BufferedOutputStream bos = new BufferedOutputStream( |
| 82 | new FileOutputStream("copy4.mp4")); |
| 83 | |
| 84 | byte[] bys = new byte[1024]; |
| 85 | int len = 0; |
| 86 | while ((len = bis.read(bys)) != -1) { |
| 87 | bos.write(bys, 0, len); |
| 88 | } |
| 89 | |
| 90 | bos.close(); |
| 91 | bis.close(); |
| 92 | } |
| 93 | } |