file.delete()的优化

//删除暂存的pdf
File file =new File(pdfFilename);
file.delete();

Path path2 = Paths.get(pdfFilename);
Files.delete(path2);

posted @ 2018-10-11 16:08  WhoKnows1  阅读(481)  评论(0编辑  收藏  举报