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

Method method4

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

Source from the content-addressed store, hash-verified

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}

Callers 1

mainMethod · 0.95

Calls 3

readMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected