MCPcopy
hub / github.com/DuGuQiuBai/Java / main

Method main

day20/code/day20_IO/src/cn/itcast_03/CopyAviDemo.java:15–30  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

13 */
14public class CopyAviDemo {
15 public static void main(String[] args) throws IOException {
16 // ��װ����Դ
17 FileInputStream fis = new FileInputStream("e:\\DOS����.avi");
18 // ��װĿ�ĵ�
19 FileOutputStream fos = new FileOutputStream("copy.avi");
20
21 // �����
22 int by = 0;
23 while ((by = fis.read()) != -1) {
24 fos.write(by);
25 }
26
27 // �ͷ���Դ
28 fos.close();
29 fis.close();
30 }
31}

Callers

nothing calls this directly

Calls 3

readMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected