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
public abstract class BasePath<T extends BasePath<T,FS>,FS extends BaseFileSystem<T>> extends Object implements Path
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringasString()protected TasT()protected intcalculatedHashCode()protected TcheckPath(Path paramPath)protected intcompare(String s1, String s2)intcompareTo(Path paramPath)protected Tcreate(String root, String... names)protected Tcreate(String root, Collection<String> names)protected Tcreate(String root, List<String> names)booleanendsWith(String other)booleanendsWith(Path other)protected booleanendsWith(List<?> list, List<?> other)booleanequals(Object obj)TgetFileName()FSgetFileSystem()TgetName(int index)intgetNameCount()TgetParent()TgetRoot()inthashCode()booleanisAbsolute()protected booleanisNormal()Iterator<Path>iterator()Tnormalize()WatchKeyregister(WatchService watcher, WatchEvent.Kind<?>... events)WatchKeyregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)Trelativize(Path other)Tresolve(String other)Tresolve(Path other)PathresolveSibling(String other)PathresolveSibling(Path other)booleanstartsWith(String other)booleanstartsWith(Path other)protected booleanstartsWith(List<?> list, List<?> other)Tsubpath(int beginIndex, int endIndex)TtoAbsolutePath()FiletoFile()StringtoString()URItoUri()-
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
-
-
-
-
Method Detail
-
asT
protected T asT()
-
create
protected T create(String root, Collection<String> names)
-
getFileSystem
public FS getFileSystem()
- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()
- Specified by:
isAbsolutein interfacePath
-
getFileName
public T getFileName()
- Specified by:
getFileNamein interfacePath
-
getNameCount
public int getNameCount()
- Specified by:
getNameCountin interfacePath
-
startsWith
public boolean startsWith(Path other)
- Specified by:
startsWithin interfacePath
-
startsWith
public boolean startsWith(String other)
- Specified by:
startsWithin interfacePath
-
isNormal
protected boolean isNormal()
-
resolveSibling
public Path resolveSibling(Path other)
- Specified by:
resolveSiblingin interfacePath
-
resolveSibling
public Path resolveSibling(String other)
- Specified by:
resolveSiblingin interfacePath
-
relativize
public T relativize(Path other)
- Specified by:
relativizein interfacePath
-
toAbsolutePath
public T toAbsolutePath()
- Specified by:
toAbsolutePathin interfacePath
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
- 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
-
compareTo
public int compareTo(Path paramPath)
-
hashCode
public int hashCode()
-
calculatedHashCode
protected int calculatedHashCode()
-
equals
public boolean equals(Object obj)
-
toString
public String toString()
-
asString
protected String asString()
-
-