Package no.maddin.niofs.sftp
Class SFTPPath
java.lang.Object
no.maddin.niofs.sftp.SFTPPath
A Path implementation for SFTP.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanboolean@NotNull PathgetName(int index) intgetParts()getRoot()inthashCode()booleaniterator()@NotNull Path@NotNull WatchKeyregister(@NotNull WatchService watcher, WatchEvent.Kind<?> @NotNull ... events) @NotNull WatchKeyregister(@NotNull WatchService watcher, WatchEvent.Kind<?> @NotNull [] events, WatchEvent.Modifier... modifiers) @NotNull Pathrelativize(@NotNull Path other) @NotNull Path@NotNull Path@NotNull PathresolveSibling(@NotNull String other) @NotNull PathresolveSibling(@NotNull Path other) booleanstartsWith(@NotNull String other) booleanstartsWith(Path other) @NotNull Pathsubpath(int beginIndex, int endIndex) @NotNull Path@NotNull FiletoFile()@NotNull PathtoRealPath(LinkOption @NotNull ... options) @NotNull StringtoString()@NotNull URItoUri()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
PATH_SEP
- See Also:
-
-
Constructor Details
-
SFTPPath
-
-
Method Details
-
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
- Specified by:
startsWithin interfacePath
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
endsWith
-
normalize
-
resolve
-
resolve
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath
-
relativize
- Specified by:
relativizein interfacePath
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath- Throws:
IOException
-
toFile
-
register
@NotNull public @NotNull WatchKey register(@NotNull @NotNull WatchService watcher, WatchEvent.Kind<?> @NotNull [] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
register
@NotNull public @NotNull WatchKey register(@NotNull @NotNull WatchService watcher, WatchEvent.Kind<?> @NotNull ... events) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
iterator
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
getPathString
-
getParts
-
toString
-
equals
-
hashCode
public int hashCode()
-