本篇不打算冗长介绍各种异常,只写出通用的应该遵循的异常处理规范(个人理解,如有错误欢迎指正) 1. 检查异常(checked exception),通常见到的有SQLException,IOException,InterruptedException,ConnectTimeOutException, Read More
posted @ 2017-02-19 12:14 open_sesame Views(279) Comments(0) Diggs(0) Edit
最近复习到IO,想找个案例做一做,恰好下载了许多图片压缩包,查看图片很不方便,所以打算用IO把图片都解压到同一个文件夹下。然后集中打包。 本例使用jdk自带的ZipInputStream和ZipOutPutStream,功能有限不支持rar但是api很简单。 后记: 1.添加到zip中使用putNe Read More
posted @ 2017-02-19 12:06 open_sesame Views(431) Comments(0) Diggs(0) Edit