Java ZIP API提供了处理ZIP压缩以及解压的方法,但是有一个大的问题,压缩进去的文件解压后就丢失了文件可执行属性。这是部分压缩实现代码: File d = new File(dir); if (!d.isDirectory()) throw new IllegalArgumentException("Not a directory: " + dir); String[] entries = d.list(); byte[] buffer = new byte[4096]; // Create a buffer for copying int ...
liusu
搜索本博客
博客分类
最近加入圈子
存档
最新评论