P
- the type of the implementing classpublic abstract class BasePath<P extends BasePath<P>> extends Object implements Path
Path
implementation that works independent of the file
system or path representation.
Methods on this class are implemented in terms of other methods defined by
Path
or throw UnsupportedOperationException
.
Constructor and Description |
---|
BasePath() |
Modifier and Type | Method and Description |
---|---|
boolean |
endsWith(String other) |
abstract boolean |
equals(Object o) |
abstract BaseFileSystem<P> |
getFileSystem() |
abstract int |
hashCode() |
Iterator<Path> |
iterator() |
WatchKey |
register(WatchService watcher,
WatchEvent.Kind<?>... events) |
WatchKey |
register(WatchService watcher,
WatchEvent.Kind<?>[] events,
WatchEvent.Modifier... modifiers) |
Path |
resolve(String other) |
Path |
resolveSibling(String other) |
boolean |
startsWith(String other) |
File |
toFile() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compareTo, endsWith, getFileName, getName, getNameCount, getParent, getRoot, isAbsolute, normalize, relativize, resolve, resolveSibling, startsWith, subpath, toAbsolutePath, toRealPath, toString, toUri
forEach, spliterator
public abstract BaseFileSystem<P> getFileSystem()
getFileSystem
in interface Path
public boolean startsWith(String other)
startsWith
in interface Path
public Path resolveSibling(String other)
resolveSibling
in interface Path
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
register
in interface Path
register
in interface Watchable
IOException
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException
register
in interface Path
register
in interface Watchable
IOException
public abstract int hashCode()