MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / method2

Method method2

day21/code/day21_IO/src/cn/itcast_03/CopyMP4Demo.java:47–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

readMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected