| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private int | |
| private volatile int[] | |
| private final byte[] | |
| private volatile byte[] | |
| private final ZipFileSystem |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private ZipPath | |
| public int | compareTo(Path other)
Implements java. Compares two abstract paths lexicographically. |
| pack-priv void | |
| private void | |
| pack-priv void | |
| private static int | |
| private static String | |
| pack-priv void | |
| private void | |
| public boolean | endsWith(Path other)
Implements java. Tests if this path ends with the given path. |
| public boolean | endsWith(String other)
Overrides default java. Tests if this path ends with a |
| public boolean | equals(Object obj)
Overrides java. Implements java. Tests this path for equality with the given object. |
| private boolean | |
| pack-priv boolean | |
| pack-priv <V extends FileAttributeView> V | |
| private ZipFileAttributeView | |
| public ZipPath | getFileName()
Implements java. Returns the name of the file or directory denoted by this path as a
|
| pack-priv FileStore | |
| public ZipFileSystem | getFileSystem()
Implements java. Returns the file system that created this object. |
| public ZipPath | getName(int index)
Implements java. Returns a name element of this path as a |
| public int | getNameCount()
Implements java. Returns the number of name elements in the path. |
| public ZipPath | getParent()
Implements java. Returns the parent path, or |
| private String | |
| private byte[] | |
| pack-priv byte[] | |
| public ZipPath | getRoot()
Implements java. Returns the root component of this path as a |
| public int | hashCode()
Overrides java. Implements java. Computes a hash code for this path. |
| private void | |
| public boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public Iterator | iterator()
Overrides default java. Returns an iterator over the name elements of this path. |
| pack-priv void | |
| pack-priv SeekableByteChannel | |
| pack-priv DirectoryStream | |
| pack-priv FileChannel | |
| pack-priv InputStream | |
| pack-priv OutputStream | |
| public Path | normalize()
Implements java. Returns a path that is this path with redundant name elements eliminated. |
| private byte[] | |
| private byte[] | |
| private byte[] | |
| private byte[] | |
| pack-priv ZipFileAttributes | |
| pack-priv <A extends BasicFileAttributes> A | |
| pack-priv Map | |
| pack-priv ZipFileAttributes | |
| public WatchKey | register(WatchService watcher, WatchEvent.
Implements java. Registers the file located by this path with a watch service. |
| public WatchKey | register(WatchService watcher, WatchEvent.
Overrides default java. Registers the file located by this path with a watch service. |
| public Path | relativize(Path other)
Implements java. Constructs a relative path between this path and a given path. |
| public ZipPath | |
| private ZipPath | |
| public ZipPath | resolve(String other)
Overrides default java. Converts a given path string to a |
| private byte[] | |
| public Path | resolveSibling(Path other)
Overrides default java. Resolves the given path against this path's |
| public Path | resolveSibling(String other)
Overrides default java. Converts a given path string to a |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | startsWith(Path other)
Implements java. Tests if this path starts with the given path. |
| public boolean | startsWith(String other)
Overrides default java. Tests if this path starts with a |
| public ZipPath | subpath(int beginIndex, int endIndex)
Implements java. Returns a relative |
| public ZipPath | toAbsolutePath()
Implements java. Returns a |
| public File | |
| public ZipPath | toRealPath(LinkOption... options)
Implements java. Returns the real path of an existing file. |
| public String | toString()
Overrides java. Implements java. Returns the string representation of this path. |
| public URI |
| EMPTY_PATH | back to summary |
|---|---|
| private static final byte[] EMPTY_PATH | |
| hashcode | back to summary |
|---|---|
| private int hashcode | |
| offsets | back to summary |
|---|---|
| private volatile int[] offsets | |
| path | back to summary |
|---|---|
| private final byte[] path | |
| resolved | back to summary |
|---|---|
| private volatile byte[] resolved | |
| zfs | back to summary |
|---|---|
| private final ZipFileSystem zfs | |
| ZipPath | back to summary |
|---|---|
| pack-priv ZipPath(ZipFileSystem zfs, byte[] path) | |
| ZipPath | back to summary |
|---|---|
| pack-priv ZipPath(ZipFileSystem zfs, byte[] path, boolean normalized) | |
| ZipPath | back to summary |
|---|---|
| pack-priv ZipPath(ZipFileSystem zfs, String path) | |
| checkAccess | back to summary |
|---|---|
| pack-priv void checkAccess(AccessMode... modes) throws IOException | |
| checkPath | back to summary |
|---|---|
| private ZipPath checkPath(Path path) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Path other) Implements java. Doc from java. Compares two abstract paths lexicographically. The ordering defined by this method is provider specific, and in the case of the default provider, platform specific. This method does not access the file system and neither file is required to exist. This method may not be used to compare paths that are associated with different file system providers.
| |
| copy | back to summary |
|---|---|
| pack-priv void copy(ZipPath target, CopyOption... options) throws IOException | |
| copyToTarget | back to summary |
|---|---|
| private void copyToTarget(ZipPath target, CopyOption... options) throws IOException | |
| createDirectory | back to summary |
|---|---|
| pack-priv void createDirectory(FileAttribute<?>... attrs) throws IOException | |
| decode | back to summary |
|---|---|
| private static int decode(char c) | |
| decodeUri | back to summary |
|---|---|
| private static String decodeUri(String s) | |
| delete | back to summary |
|---|---|
| pack-priv void delete() throws IOException | |
| deleteIfExists | back to summary |
|---|---|
| private void deleteIfExists() throws IOException | |
| endsWith | back to summary |
|---|---|
| public boolean endsWith(Path other) Implements java. Doc from java. Tests if this path ends with the given path. If the given path has N elements, and no root component, and this path has N or more elements, then this path ends with the given path if the last N elements of each path, starting at the element farthest from the root, are equal. If the given path has a root component then this path ends with the given path if the root component of this path ends with the root component of the given path, and the corresponding elements of both paths are equal. Whether or not the root component of this path ends with the root component of the given path is file system specific. If this path does not have a root component and the given path has a root component then this path does not end with the given path. If the given path is associated with a different
| |
| endsWith | back to summary |
|---|---|
| public boolean endsWith(String other) Overrides default java. Doc from java. Tests if this path ends with a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Doc from java. Tests this path for equality with the given object. If the given object is not a Path, or is a Path associated with a
different Whether or not two path are equal depends on the file system
implementation. In some cases the paths are compared without regard
to case, and others are case sensitive. This method does not access the
file system and the file is not required to exist. Where required, the
This method satisfies the general contract of the
| |
| equalsNameAt | back to summary |
|---|---|
| private boolean equalsNameAt(ZipPath other, int index) | |
| exists | back to summary |
|---|---|
| pack-priv boolean exists() | |
| getFileAttributeView | back to summary |
|---|---|
pack-priv <V extends FileAttributeView> V getFileAttributeView(Class<V> type)
| |
| getFileAttributeView | back to summary |
|---|---|
| private ZipFileAttributeView getFileAttributeView(String type) | |
| getFileName | back to summary |
|---|---|
| public ZipPath getFileName() Implements java. Doc from java. Returns the name of the file or directory denoted by this path as a
| |
| getFileStore | back to summary |
|---|---|
| pack-priv FileStore getFileStore() throws IOException | |
| getFileSystem | back to summary |
|---|---|
| public ZipFileSystem getFileSystem() Implements java. Doc from java. Returns the file system that created this object.
| |
| getName | back to summary |
|---|---|
| public ZipPath getName(int index) Implements java. Doc from java. Returns a name element of this path as a The
| |
| getNameCount | back to summary |
|---|---|
| public int getNameCount() Implements java. Doc from java. Returns the number of name elements in the path.
| |
| getParent | back to summary |
|---|---|
| public ZipPath getParent() Implements java. Doc from java. Returns the parent path, or The parent of this path object consists of this path's root
component, if any, and each element in the path except for the
farthest from the root in the directory hierarchy. This method
does not access the file system; the path or its parent may not exist.
Furthermore, this method does not eliminate special names such as "."
and ".." that may be used in some implementations. On UNIX for example,
the parent of " If this path has more than one element, and no root component, then this method is equivalent to evaluating the expression: subpath(0, getNameCount()-1);
| |
| getRealPath | back to summary |
|---|---|
| private String getRealPath() | |
| getResolved | back to summary |
|---|---|
| private byte[] getResolved() | |
| getResolvedPath | back to summary |
|---|---|
| pack-priv byte[] getResolvedPath() | |
| getRoot | back to summary |
|---|---|
| public ZipPath getRoot() Implements java. Doc from java. Returns the root component of this path as a
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Computes a hash code for this path. The hash code is based upon the components of the path, and
satisfies the general contract of the
| |
| initOffsets | back to summary |
|---|---|
| private void initOffsets() | |
| isAbsolute | back to summary |
|---|---|
| public boolean isAbsolute() Implements java. Doc from java. Tells whether or not this path is absolute. An absolute path is complete in that it doesn't need to be combined with other path information in order to locate a file.
| |
| isHidden | back to summary |
|---|---|
| pack-priv boolean isHidden() | |
| isSameFile | back to summary |
|---|---|
| pack-priv boolean isSameFile(Path other) throws IOException | |
| iterator | back to summary |
|---|---|
| public Iterator Overrides default java. Doc from java. Returns an iterator over the name elements of this path. The first element returned by the iterator represents the name
element that is closest to the root in the directory hierarchy, the
second element is the next closest, and so on. The last element returned
is the name of the file or directory denoted by this path. The
| |
| move | back to summary |
|---|---|
| pack-priv void move(ZipPath target, CopyOption... options) throws IOException | |
| newByteChannel | back to summary |
|---|---|
| pack-priv SeekableByteChannel newByteChannel(Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException | |
| newDirectoryStream | back to summary |
|---|---|
| pack-priv DirectoryStream | |
| newFileChannel | back to summary |
|---|---|
| pack-priv FileChannel newFileChannel(Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException | |
| newInputStream | back to summary |
|---|---|
| pack-priv InputStream newInputStream(OpenOption... options) throws IOException | |
| newOutputStream | back to summary |
|---|---|
| pack-priv OutputStream newOutputStream(OpenOption... options) throws IOException | |
| normalize | back to summary |
|---|---|
| public Path normalize() Implements java. Doc from java. Returns a path that is this path with redundant name elements eliminated. The precise definition of this method is implementation dependent but
in general it derives from this path, a path that does not contain
redundant name elements. In many file systems, the " This method does not access the file system; the path may not locate
a file that exists. Eliminating "
| |
| normalize | back to summary |
|---|---|
| private byte[] normalize(byte[] path) | |
| normalize | back to summary |
|---|---|
| private byte[] normalize(byte[] path, int off) | |
| normalize | back to summary |
|---|---|
| private byte[] normalize(String path) | |
| normalize | back to summary |
|---|---|
| private byte[] normalize(String path, int off, int len) | |
| readAttributes | back to summary |
|---|---|
| pack-priv ZipFileAttributes readAttributes() throws IOException | |
| readAttributes | back to summary |
|---|---|
pack-priv <A extends BasicFileAttributes> A readAttributes(Class<A> type) throws IOException
| |
| readAttributes | back to summary |
|---|---|
| pack-priv Map | |
| readAttributesIfExists | back to summary |
|---|---|
| pack-priv ZipFileAttributes readAttributesIfExists() throws IOException | |
| register | back to summary |
|---|---|
| public WatchKey register(WatchService watcher, WatchEvent. Implements java. Doc from java. Registers the file located by this path with a watch service. In this release, this path locates a directory that exists. The
directory is registered with the watch service so that entries in the
directory can be watched. The
The The set of events may include additional implementation specific
event that are not defined by the enum The Where a file is registered with a watch service by means of a symbolic link then it is implementation specific if the watch continues to depend on the existence of the symbolic link after it is registered. | |
| register | back to summary |
|---|---|
| public WatchKey register(WatchService watcher, WatchEvent. Overrides default java. Doc from java. Registers the file located by this path with a watch service. An invocation of this method behaves in exactly the same way as the invocation register(watcher, events, new WatchEvent.Modifier[0]); Usage Example: Suppose we wish to register a directory for entry create, delete, and modify events: Path dir = ... WatchService watcher = ... WatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);
| |
| relativize | back to summary |
|---|---|
| public Path relativize(Path other) Implements java. Doc from java. Constructs a relative path between this path and a given path. Relativization is the inverse of For any two p When symbolic links are supported, then whether the resulting path,
when resolved against this path, yields a path that can be used to locate
the
| |
| resolve | back to summary |
|---|---|
| public ZipPath resolve(Path other) Implements java. Doc from java. Resolve the given path against this path. If the
| |
| resolve | back to summary |
|---|---|
| private ZipPath resolve(byte[] opath) | |
| resolve | back to summary |
|---|---|
| public ZipPath resolve(String other) Overrides default java. Doc from java. Converts a given path string to a
| |
| resolve0 | back to summary |
|---|---|
| private byte[] resolve0() | |
| resolveSibling | back to summary |
|---|---|
| public Path resolveSibling(Path other) Overrides default java. Doc from java. Resolves the given path against this path's
| |
| resolveSibling | back to summary |
|---|---|
| public Path resolveSibling(String other) Overrides default java. Doc from java. Converts a given path string to a
| |
| setAttribute | back to summary |
|---|---|
| pack-priv void setAttribute(String attribute, Object value, LinkOption... options) throws IOException | |
| setGroup | back to summary |
|---|---|
| pack-priv void setGroup(GroupPrincipal group) throws IOException | |
| setOwner | back to summary |
|---|---|
| pack-priv void setOwner(UserPrincipal owner) throws IOException | |
| setPermissions | back to summary |
|---|---|
| pack-priv void setPermissions(Set<PosixFilePermission> perms) throws IOException | |
| setTimes | back to summary |
|---|---|
| pack-priv void setTimes(FileTime mtime, FileTime atime, FileTime ctime) throws IOException | |
| startsWith | back to summary |
|---|---|
| public boolean startsWith(Path other) Implements java. Doc from java. Tests if this path starts with the given path. This path starts with the given path if this path's root
component starts with the root component of the given path,
and this path starts with the same name elements as the given path.
If the given path has more name elements than this path then Whether or not the root component of this path starts with the root component of the given path is file system specific. If this path does not have a root component and the given path has a root component then this path does not start with the given path. If the given path is associated with a different
| |
| startsWith | back to summary |
|---|---|
| public boolean startsWith(String other) Overrides default java. Doc from java. Tests if this path starts with a
| |
| subpath | back to summary |
|---|---|
| public ZipPath subpath(int beginIndex, int endIndex) Implements java. Doc from java. Returns a relative The
| |
| toAbsolutePath | back to summary |
|---|---|
| public ZipPath toAbsolutePath() Implements java. Doc from java. Returns a If this path is already
| |
| toFile | back to summary |
|---|---|
| public File toFile() Overrides default java. Doc from java. Returns a If this path was created by invoking the
| |
| toRealPath | back to summary |
|---|---|
| public ZipPath toRealPath(LinkOption... options) throws IOException Implements java. Doc from java. Returns the real path of an existing file. The precise definition of this method is implementation dependent but
in general it derives from this path, an If this path is relative then its absolute path is first obtained,
as if by invoking the The
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Doc from java. Returns the string representation of this path. If this path was created by converting a path string using the
The returned path string uses the default name
| |
| toUri | back to summary |
|---|---|
| public URI toUri() Implements java. Doc from java. Returns a URI to represent this path. This method constructs an absolute In the case of the default provider, the URI is hierarchical with
a The default provider provides a similar round-trip guarantee
to the so long as the original Path, the URI, and the new Path are all created in (possibly different invocations of) the same
Java virtual machine. Whether other providers make any guarantees is
provider specific and therefore unspecified.
When a file system is constructed to access the contents of a file as a file system then it is highly implementation specific if the returned URI represents the given path in the file system or it represents a compound URI that encodes the URI of the enclosing file system. A format for compound URIs is not defined in this release; such a scheme may be added in a future release.
| |