Constructor and Description |
---|
PathWrapper(Path path,
FileSystem fileSystem) |
public PathWrapper(Path path, FileSystem fileSystem)
public int compareTo(Path path)
compareTo
in interface Comparable<Path>
compareTo
in interface Path
public boolean equals(Object path)
public FileSystem getFileSystem()
getFileSystem
in interface Path
public int getNameCount()
getNameCount
in interface Path
public int hashCode()
public boolean isAbsolute()
isAbsolute
in interface Path
public WatchKey register(WatchService watcherService, WatchEvent.Kind<?>... kinds) throws IOException
register
in interface Path
register
in interface Watchable
IOException
public WatchKey register(WatchService watcherService, WatchEvent.Kind<?>[] kinds, WatchEvent.Modifier... modifiers) throws IOException
register
in interface Path
register
in interface Watchable
IOException
public Path resolveSibling(String path)
resolveSibling
in interface Path
public Path toRealPath(LinkOption... linkOptions) throws IOException
toRealPath
in interface Path
IOException
public String toString()
protected static Path wrapPath(Path path, FileSystem fileSystem)