README.txt revision 3478
0N/AZipFileSystem is a file system provider that treats the contents of a zip or
2362N/AJAR file as a java.nio.file.FileSystem.
0N/A
0N/AThe factory methods defined by the java.nio.file.FileSystems class can be
0N/Aused to create a FileSystem, eg:
0N/A
0N/A // use file type detection
0N/A Path jarfile = Paths.get("foo.jar");
0N/A FileSystem fs = FileSystems.newFileSystem(jarfile, null);
0N/A
0N/A-or
0N/A
0N/A // locate file system by the legacy JAR URL syntax
0N/A Map<String,?> env = Collections.emptyMap();
2362N/A URI uri = URI.create("jar:file:/mydir/foo.jar");
0N/A FileSystem fs = FileSystems.newFileSystem(uri, env);
0N/A
0N/AOnce a FileSystem is created then classes in the java.nio.file package
0N/Acan be used to access files in the zip/JAR file, eg:
0N/A
0N/A Path mf = fs.getPath("/META-INF/MANIFEST.MF");
0N/A InputStream in = mf.newInputStream();
0N/A
0N/ASee Demo.java for more interesting usages.
0N/A
0N/A
0N/A