Package org.apache.sshd.common.file.util
Class BasePath<T extends BasePath<T,FS>,FS extends BaseFileSystem<T>>
java.lang.Object
org.apache.sshd.common.file.util.BasePath<T,FS>
- Direct Known Subclasses:
RootedPath,SftpPath
public abstract class BasePath<T extends BasePath<T,FS>,FS extends BaseFileSystem<T>>
extends Object
implements Path
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringasString()protected TasT()protected intprotected Tprotected intintprotected Tprotected Tcreate(String root, Collection<String> names) protected Tbooleanbooleanprotected booleanbooleangetName(int index) intgetRoot()inthashCode()booleanprotected booleanisNormal()iterator()register(WatchService watcher, WatchEvent.Kind<?>... events) register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize(Path other) resolveSibling(String other) resolveSibling(Path other) booleanstartsWith(String other) booleanstartsWith(Path other) protected booleanstartsWith(List<?> list, List<?> other) subpath(int beginIndex, int endIndex) toFile()toString()toUri()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.nio.file.Path
toRealPath
-
Field Details
-
root
-
names
-
fileSystem
-
strValue
-
hashValue
private int hashValue
-
-
Constructor Details
-
BasePath
-
-
Method Details
-
asT
-
create
-
create
-
create
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getName
-
subpath
-
startsWith
-
startsWith
- Specified by:
startsWithin interfacePath
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
endsWith
-
endsWith
-
isNormal
protected boolean isNormal() -
normalize
-
resolve
-
resolve
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath
-
relativize
- Specified by:
relativizein interfacePath
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toUri
-
toFile
-
register
- Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
iterator
-
compareTo
-
compare
-
checkPath
-
hashCode
public int hashCode() -
calculatedHashCode
protected int calculatedHashCode() -
equals
-
toString
-
asString
-