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 String
asString()
protected T
asT()
protected int
protected T
protected int
int
protected T
protected T
create
(String root, Collection<String> names) protected T
boolean
boolean
protected boolean
boolean
getName
(int index) int
getRoot()
int
hashCode()
boolean
protected boolean
isNormal()
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) boolean
startsWith
(String other) boolean
startsWith
(Path other) protected boolean
startsWith
(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, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
getFileSystem
in interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolute
in interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileName
in interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCount
in interfacePath
-
getName
-
subpath
-
startsWith
-
startsWith
- Specified by:
startsWith
in interfacePath
-
startsWith
- Specified by:
startsWith
in interfacePath
-
endsWith
-
endsWith
-
endsWith
-
isNormal
protected boolean isNormal() -
normalize
-
resolve
-
resolve
-
resolveSibling
- Specified by:
resolveSibling
in interfacePath
-
resolveSibling
- Specified by:
resolveSibling
in interfacePath
-
relativize
- Specified by:
relativize
in interfacePath
-
toAbsolutePath
- Specified by:
toAbsolutePath
in interfacePath
-
toUri
-
toFile
-
register
- Specified by:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Throws:
IOException
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Throws:
IOException
-
iterator
-
compareTo
-
compare
-
checkPath
-
hashCode
public int hashCode() -
calculatedHashCode
protected int calculatedHashCode() -
equals
-
toString
-
asString
-