public class PathWrapper
extends Object
implements Path
| Constructor and Description |
|---|
PathWrapper(Path path,
FileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Path path) |
boolean |
endsWith(Path path) |
boolean |
endsWith(String path) |
boolean |
equals(Object path) |
Path |
getFileName() |
FileSystem |
getFileSystem() |
Path |
getName(int index) |
int |
getNameCount() |
Path |
getParent() |
Path |
getRoot() |
int |
hashCode() |
boolean |
isAbsolute() |
Iterator<Path> |
iterator() |
Path |
normalize() |
WatchKey |
register(WatchService watcherService,
WatchEvent.Kind<?>... kinds) |
WatchKey |
register(WatchService watcherService,
WatchEvent.Kind<?>[] kinds,
WatchEvent.Modifier... modifiers) |
Path |
relativize(Path path) |
Path |
resolve(Path path) |
Path |
resolve(String path) |
Path |
resolveSibling(Path path) |
Path |
resolveSibling(String path) |
boolean |
startsWith(Path path) |
boolean |
startsWith(String path) |
Path |
subpath(int beginIndex,
int endIndex) |
Path |
toAbsolutePath() |
File |
toFile() |
Path |
toRealPath(LinkOption... linkOptions) |
String |
toString() |
URI |
toUri() |
protected static Path |
unwrapPath(Path path) |
protected static Path |
wrapPath(Path path,
FileSystem fileSystem) |
public int compareTo(Path path)
compareTo in interface Comparable<Path>compareTo in interface Pathpublic boolean endsWith(Path path)
endsWith in interface Pathpublic boolean endsWith(String path)
endsWith in interface Pathpublic boolean equals(Object path)
equals in interface Pathequals in class Objectpublic Path getFileName()
getFileName in interface Pathpublic FileSystem getFileSystem()
getFileSystem in interface Pathpublic Path getName(int index)
getName in interface Pathpublic int getNameCount()
getNameCount in interface Pathpublic Path getParent()
getParent in interface Pathpublic Path getRoot()
getRoot in interface Pathpublic int hashCode()
hashCode in interface PathhashCode in class Objectpublic boolean isAbsolute()
isAbsolute in interface Pathpublic Iterator<Path> iterator()
iterator in interface Iterable<Path>iterator in interface Pathpublic Path normalize()
normalize in interface Pathpublic WatchKey register(WatchService watcherService,
WatchEvent.Kind<?>... kinds)
throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic WatchKey register(WatchService watcherService,
WatchEvent.Kind<?>[] kinds,
WatchEvent.Modifier... modifiers)
throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic Path relativize(Path path)
relativize in interface Pathpublic Path resolve(Path path)
resolve in interface Pathpublic Path resolve(String path)
resolve in interface Pathpublic Path resolveSibling(Path path)
resolveSibling in interface Pathpublic Path resolveSibling(String path)
resolveSibling in interface Pathpublic boolean startsWith(Path path)
startsWith in interface Pathpublic boolean startsWith(String path)
startsWith in interface Pathpublic Path subpath(int beginIndex,
int endIndex)
subpath in interface Pathpublic Path toAbsolutePath()
toAbsolutePath in interface Pathpublic File toFile()
toFile in interface Pathpublic Path toRealPath(LinkOption... linkOptions)
throws IOException
toRealPath in interface PathIOExceptionpublic String toString()
toString in interface PathtoString in class Objectpublic URI toUri()
toUri in interface Pathprotected static Path unwrapPath(Path path)
protected static Path wrapPath(Path path,
FileSystem fileSystem)