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

Method main

day20/code/day20_IO/src/cn/itcast_03/CopyImageDemo.java:16–31  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

readMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected