Adv

6/15/2011

The ZIP filesystem provider in JDK7 Xueming Shens Oracle Blog

The ZIP filesystem provider in JDK7 Xueming Shens Oracle Blog.

Java will get some friendly file API, finally, after 10 years.
try (FileSystem fs = FileSystems.newFileSystem(Paths.get("my.zip"), null)) {
Files.copy(fs.getPath("/file.in.zip"), Paths.get("dropbox/unzipped.file");
}


沒有留言: