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 watchService,
WatchEvent.Kind<?>... kinds) |
WatchKey |
register(WatchService watchService,
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 Path
public boolean endsWith(Path path)
endsWith
in interface Path
public boolean endsWith(String path)
endsWith
in interface Path
public boolean equals(Object path)
equals
in interface Path
equals
in class Object
public Path getFileName()
getFileName
in interface Path
public FileSystem getFileSystem()
getFileSystem
in interface Path
public Path getName(int index)
getName
in interface Path
public int getNameCount()
getNameCount
in interface Path
public Path getParent()
getParent
in interface Path
public Path getRoot()
getRoot
in interface Path
public int hashCode()
hashCode
in interface Path
hashCode
in class Object
public boolean isAbsolute()
isAbsolute
in interface Path
public Iterator<Path> iterator()
iterator
in interface Iterable<Path>
iterator
in interface Path
public Path normalize()
normalize
in interface Path
public WatchKey register(WatchService watchService, WatchEvent.Kind<?>... kinds) throws IOException
register
in interface Path
register
in interface Watchable
IOException
public WatchKey register(WatchService watchService, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier... modifiers) throws IOException
register
in interface Path
register
in interface Watchable
IOException
public Path relativize(Path path)
relativize
in interface Path
public Path resolve(Path path)
resolve
in interface Path
public Path resolve(String path)
resolve
in interface Path
public Path resolveSibling(Path path)
resolveSibling
in interface Path
public Path resolveSibling(String path)
resolveSibling
in interface Path
public boolean startsWith(Path path)
startsWith
in interface Path
public boolean startsWith(String path)
startsWith
in interface Path
public Path subpath(int beginIndex, int endIndex)
subpath
in interface Path
public Path toAbsolutePath()
toAbsolutePath
in interface Path
public File toFile()
toFile
in interface Path
public Path toRealPath(LinkOption... linkOptions) throws IOException
toRealPath
in interface Path
IOException
public String toString()
toString
in interface Path
toString
in class Object
public URI toUri()
toUri
in interface Path
protected static Path unwrapPath(Path path)
protected static Path wrapPath(Path path, FileSystem fileSystem)