()
| 45 | |
| 46 | // �����ֽ���һ�ζ�дһ���ֽ����� |
| 47 | public static void method2() throws IOException { |
| 48 | FileInputStream fis = new FileInputStream("d:\\��������.mp4"); |
| 49 | FileOutputStream fos = new FileOutputStream("copy2.mp4"); |
| 50 | |
| 51 | byte[] bys = new byte[1024]; |
| 52 | int len = 0; |
| 53 | while ((len = fis.read(bys)) != -1) { |
| 54 | fos.write(bys, 0, len); |
| 55 | } |
| 56 | |
| 57 | fos.close(); |
| 58 | fis.close(); |
| 59 | } |
| 60 | |
| 61 | // ��Ч�ֽ���һ�ζ�дһ���ֽ� |
| 62 | public static void method3() throws IOException { |