import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.HashMap;

public class JI9033675 extends SimpleFileVisitor<Path>{

	public static void main(String[] args) throws URISyntaxException, IOException {
		URI uri = new URI("jar:file:/C:/tmp/zipfile.zip"); 

		Files.walkFileTree(Paths.get("c:\\tmp\\folder"), new JI9033675()); 

		try (FileSystem fs = FileSystems.newFileSystem(uri, new HashMap<String, Object>())) { 
			Files.walkFileTree(fs.getPath("/"), new JI9033675()); 
			Files.walkFileTree(fs.getPath("folder"), new JI9033675()); 
		} 
	} 

	private JI9033675() { 
		System.out.println(); 
	} 

	public FileVisitResult preVisitDirectory(Path path, BasicFileAttributes attrs) { 
		System.out.println(path.getFileName()); 
		return FileVisitResult.CONTINUE; 
	} 

}

