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

Method method1

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

Source from the content-addressed store, hash-verified

31
32 // �����ֽ���һ�ζ�дһ���ֽ�
33 public static void method1() throws IOException {
34 FileInputStream fis = new FileInputStream("d:\\��������.mp4");
35 FileOutputStream fos = new FileOutputStream("copy1.mp4");
36
37 int by = 0;
38 while ((by = fis.read()) != -1) {
39 fos.write(by);
40 }
41
42 fos.close();
43 fis.close();
44 }
45
46 // �����ֽ���һ�ζ�дһ���ֽ�����
47 public static void method2() throws IOException {

Callers

nothing calls this directly

Calls 3

readMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected