如图,不抛的话,怎么try- public static void copy_1()throws IOException //这里不想抛异常的话,怎么处理
- {
- BufferedInputStream bufis = new BufferedInputStream(
- new FileInputStream("Date01.java"));
- BufferedOutputStream bufos = new BufferedOutputStream(
- new FileOutputStream("Date00.java"));
- int by = 0;
- while((by=bufis.read())!=-1)
- {
- bufos.write(by);
- }
- bufos.close();
- bufis.close();
- }
复制代码 |