< prev index next >

src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystemProvider.java

Print this page
rev 53038 : 8215472: (zipfs) Cleanups in implementation classes of jdk.zipfs and tests

*** 23,54 **** * questions. */ package jdk.nio.zipfs; ! import java.io.*; ! import java.nio.channels.*; import java.nio.file.*; import java.nio.file.DirectoryStream.Filter; ! import java.nio.file.attribute.*; import java.nio.file.spi.FileSystemProvider; - import java.net.URI; - import java.net.URISyntaxException; import java.util.HashMap; import java.util.Map; import java.util.Set; - import java.util.zip.ZipException; import java.util.concurrent.ExecutorService; ! /* ! * ! * @author Xueming Shen, Rajendra Gutupalli, Jaya Hangal */ - public class ZipFileSystemProvider extends FileSystemProvider { - private final Map<Path, ZipFileSystem> filesystems = new HashMap<>(); public ZipFileSystemProvider() {} @Override --- 23,57 ---- * questions. */ package jdk.nio.zipfs; ! import java.io.IOException; ! import java.io.InputStream; ! import java.io.OutputStream; ! import java.net.URI; ! import java.net.URISyntaxException; ! import java.nio.channels.AsynchronousFileChannel; ! import java.nio.channels.FileChannel; ! import java.nio.channels.SeekableByteChannel; import java.nio.file.*; import java.nio.file.DirectoryStream.Filter; ! import java.nio.file.attribute.BasicFileAttributes; ! import java.nio.file.attribute.FileAttribute; ! import java.nio.file.attribute.FileAttributeView; import java.nio.file.spi.FileSystemProvider; import java.util.HashMap; import java.util.Map; import java.util.Set; import java.util.concurrent.ExecutorService; + import java.util.zip.ZipException; ! /** ! * @author Xueming Shen, Rajendra Gutupalli, Jaya Hangal */ public class ZipFileSystemProvider extends FileSystemProvider { private final Map<Path, ZipFileSystem> filesystems = new HashMap<>(); public ZipFileSystemProvider() {} @Override
*** 200,210 **** public final void delete(Path path) throws IOException { toZipPath(path).delete(); } @Override - @SuppressWarnings("unchecked") public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) { return ZipFileAttributeView.get(toZipPath(path), type); } --- 203,212 ----
< prev index next >