| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkAccess(Path path, AccessMode... modes)
Implements abstract java. Checks the existence, and optionally the accessibility, of a file. |
| public void | copy(Path src, Path target, CopyOption... options)
Implements abstract java. Copy a file to a target file. |
| public void | createDirectory(Path path, FileAttribute<?>... attrs)
Implements abstract java. Creates a new directory. |
| public final void | |
| private boolean | |
| public boolean | exists(Path path, LinkOption... options)
Overrides java. Tests whether a file exists. |
| public <V extends FileAttributeView> V | getFileAttributeView(Path path, Class<V> type, LinkOption... options)
Implements abstract java. Returns a file attribute view of a given type. |
| public FileStore | getFileStore(Path path)
Implements abstract java. Returns the |
| public FileSystem | getFileSystem(URI uri)
Implements abstract java. Returns an existing |
| public Path | getPath(URI uri)
Implements abstract java. Return a |
| public String | getScheme()
Implements abstract java. Returns the URI scheme that identifies this provider. |
| private ZipFileSystem | |
| public boolean | isHidden(Path path)
Implements abstract java. Tells whether or not a file is considered hidden. |
| public boolean | isSameFile(Path path, Path other)
Implements abstract java. Tests if two paths locate the same file. |
| public void | move(Path src, Path target, CopyOption... options)
Implements abstract java. Move or rename a file to a target file. |
| public AsynchronousFileChannel | newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService exec, FileAttribute<?>... attrs)
Overrides java. Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file. |
| public SeekableByteChannel | newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
Implements abstract java. Opens or creates a file, returning a seekable byte channel to access the file. |
| public DirectoryStream | newDirectoryStream(Path path, DirectoryStream.
Implements abstract java. Opens a directory, returning a |
| public FileChannel | newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
Overrides java. Opens or creates a file for reading and/or writing, returning a file channel to access the file. |
| public FileSystem | newFileSystem(URI uri, Map<String, ?> env)
Implements abstract java. Constructs a new |
| public FileSystem | newFileSystem(Path path, Map<String, ?> env)
Overrides java. Constructs a new |
| public InputStream | newInputStream(Path path, OpenOption... options)
Overrides java. Opens a file, returning an input stream to read from the file. |
| public OutputStream | newOutputStream(Path path, OpenOption... options)
Overrides java. Opens or creates a file, returning an output stream that may be used to write bytes to the file. |
| public <A extends BasicFileAttributes> A | readAttributes(Path path, Class<A> type, LinkOption... options)
Implements abstract java. Reads a file's attributes as a bulk operation. |
| public Map | readAttributes(Path path, String attributes, LinkOption... options)
Implements abstract java. Reads a set of file attributes as a bulk operation. |
| public <A extends BasicFileAttributes> A | readAttributesIfExists(Path path, Class<A> type, LinkOption... options)
Overrides java. Reads a file's attributes as a bulk operation if it exists. |
| public Path | readSymbolicLink(Path link)
Overrides java. Reads the target of a symbolic link. |
| pack-priv void | |
| public void | setAttribute(Path path, String attribute, Object value, LinkOption... options)
Implements abstract java. Sets the value of a file attribute. |
| private static ZipPath | |
| protected Path |
| filesystems | back to summary |
|---|---|
| private final Map<Path, ZipFileSystem> filesystems | |
| ZipFileSystemProvider | back to summary |
|---|---|
| public ZipFileSystemProvider() | |
| checkAccess | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public void checkAccess(Path path, AccessMode... modes) throws IOException Implements abstract java. Doc from java. Checks the existence, and optionally the accessibility, of a file. This method may be used by the This method checks the existence of a file and that this Java virtual
machine has appropriate privileges that would allow it access the file
according to all of access modes specified in the
If the This method follows symbolic links if the file referenced by this object is a symbolic link. Depending on the implementation, this method may require to read file permissions, access control lists, or other file attributes in order to check the effective access to the file. To determine the effective access to a file may require access to several attributes and so in some implementations this method may not be atomic with respect to other file system operations.
| |||||||||
| copy | back to summary |
|---|---|
| public void copy(Path src, Path target, CopyOption... options) throws IOException Implements abstract java. Doc from java. Copy a file to a target file. This method works in exactly the manner
specified by the
| |
| createDirectory | back to summary |
|---|---|
| public void createDirectory(Path path, FileAttribute<?>... attrs) throws IOException Implements abstract java. Doc from java. Creates a new directory. This method works in exactly the manner
specified by the
| |
| delete | back to summary |
|---|---|
| public final void delete(Path path) throws IOException Implements abstract java. Doc from java. Deletes a file. This method works in exactly the manner specified by the
| |
| ensureFile | back to summary |
|---|---|
| private boolean ensureFile(Path path) | |
| exists | back to summary |
|---|---|
| public boolean exists(Path path, LinkOption... options) Overrides java. Doc from java. Tests whether a file exists. This method works in exactly the
manner specified by the
| |
| getFileAttributeView | back to summary |
|---|---|
| public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) Implements abstract java. Doc from java. Returns a file attribute view of a given type. This method works in
exactly the manner specified by the
| |
| getFileStore | back to summary |
|---|---|
| public FileStore getFileStore(Path path) throws IOException Implements abstract java. Doc from java. Returns the
| |
| getFileSystem | back to summary |
|---|---|
| public FileSystem getFileSystem(URI uri) Implements abstract java. Doc from java. Returns an existing This method returns a reference to a Once a file system created by this provider is
| |
| getPath | back to summary |
|---|---|
| public Path getPath(URI uri) Implements abstract java. Doc from java. Return a The exact form of the URI is file system provider dependent. In the
case of the default provider, the URI scheme is
| |
| getScheme | back to summary |
|---|---|
| public String getScheme() Implements abstract java. Doc from java. Returns the URI scheme that identifies this provider.
| |
| getZipFileSystem | back to summary |
|---|---|
| private ZipFileSystem getZipFileSystem(Path path, Map<String, ?> env) throws IOException | |
| isHidden | back to summary |
|---|---|
| public boolean isHidden(Path path) Implements abstract java. Doc from java. Tells whether or not a file is considered hidden. This method
works in exactly the manner specified by the This method is invoked by the
| |
| isSameFile | back to summary |
|---|---|
| public boolean isSameFile(Path path, Path other) throws IOException Implements abstract java. Doc from java. Tests if two paths locate the same file. This method works in exactly the
manner specified by the
| |
| move | back to summary |
|---|---|
| public void move(Path src, Path target, CopyOption... options) throws IOException Implements abstract java. Doc from java. Move or rename a file to a target file. This method works in exactly the
manner specified by the
| |
| newAsynchronousFileChannel | back to summary |
|---|---|
| public AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService exec, FileAttribute<?>... attrs) Overrides java. Doc from java. Opens or creates a file for reading and/or writing, returning an
asynchronous file channel to access the file. This method works in
exactly the manner specified by the
| |
| newByteChannel | back to summary |
|---|---|
| public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException Implements abstract java. Doc from java. Opens or creates a file, returning a seekable byte channel to access the
file. This method works in exactly the manner specified by the
| |
| newDirectoryStream | back to summary |
|---|---|
| public DirectoryStream Implements abstract java. Doc from java. Opens a directory, returning a
| |
| newFileChannel | back to summary |
|---|---|
| public FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException Overrides java. Doc from java. Opens or creates a file for reading and/or writing, returning a file
channel to access the file. This method works in exactly the manner
specified by the
| |
| newFileSystem | back to summary |
|---|---|
| public FileSystem newFileSystem(URI uri, Map<String, ?> env) throws IOException Implements abstract java. Doc from java. Constructs a new The This method throws
| |
| newFileSystem | back to summary |
|---|---|
| public FileSystem newFileSystem(Path path, Map<String, ?> env) throws IOException Overrides java. Doc from java. Constructs a new This method is intended for specialized providers of pseudo file
systems where the contents of one or more files is treated as a file
system. The If this provider does not support the creation of such file systems
or if the provider does not recognize the file type of the given file then
it throws
| |
| newInputStream | back to summary |
|---|---|
| public InputStream newInputStream(Path path, OpenOption... options) throws IOException Overrides java. Doc from java. Opens a file, returning an input stream to read from the file. This
method works in exactly the manner specified by the The default implementation of this method opens a channel to the file
as if by invoking the
| |
| newOutputStream | back to summary |
|---|---|
| public OutputStream newOutputStream(Path path, OpenOption... options) throws IOException Overrides java. Doc from java. Opens or creates a file, returning an output stream that may be used to
write bytes to the file. This method works in exactly the manner
specified by the The default implementation of this method opens a channel to the file
as if by invoking the
| |
| readAttributes | back to summary |
|---|---|
| public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException Implements abstract java. Doc from java. Reads a file's attributes as a bulk operation. This method works in
exactly the manner specified by the
| |
| readAttributes | back to summary |
|---|---|
| public Map Implements abstract java. Doc from java. Reads a set of file attributes as a bulk operation. This method works in
exactly the manner specified by the
| |
| readAttributesIfExists | back to summary |
|---|---|
| public <A extends BasicFileAttributes> A readAttributesIfExists(Path path, Class<A> type, LinkOption... options) throws IOException Overrides java. Doc from java. Reads a file's attributes as a bulk operation if it exists. The The It is implementation specific if all file attributes are read as an atomic operation with respect to other file system operations.
| |
| readSymbolicLink | back to summary |
|---|---|
| public Path readSymbolicLink(Path link) Overrides java. Doc from java. Reads the target of a symbolic link. This method works in exactly the
manner specified by the The default implementation of this method throws
| |
| removeFileSystem | back to summary |
|---|---|
| pack-priv void removeFileSystem(Path zfpath, ZipFileSystem zfs) throws IOException | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException Implements abstract java. Doc from java. Sets the value of a file attribute. This method works in exactly the
manner specified by the
| |
| toZipPath | back to summary |
|---|---|
| private static ZipPath toZipPath(Path path) | |
| uriToPath | back to summary |
|---|---|
| protected Path uriToPath(URI uri) | |