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 TypeMethodDescriptionint
boolean
boolean
boolean
@NotNull Path
getName
(int index) int
getParts()
getRoot()
int
hashCode()
boolean
iterator()
@NotNull Path
@NotNull WatchKey
register
(@NotNull WatchService watcher, WatchEvent.Kind<?> @NotNull ... events) @NotNull WatchKey
register
(@NotNull WatchService watcher, WatchEvent.Kind<?> @NotNull [] events, WatchEvent.Modifier... modifiers) @NotNull Path
relativize
(@NotNull Path other) @NotNull Path
@NotNull Path
@NotNull Path
resolveSibling
(@NotNull String other) @NotNull Path
resolveSibling
(@NotNull Path other) boolean
startsWith
(@NotNull String other) boolean
startsWith
(Path other) @NotNull Path
subpath
(int beginIndex, int endIndex) @NotNull Path
@NotNull File
toFile()
@NotNull Path
toRealPath
(LinkOption @NotNull ... options) @NotNull String
toString()
@NotNull URI
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
-
Field Details
-
PATH_SEP
- See Also:
-
-
Constructor Details
-
SFTPPath
-
-
Method Details
-
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
- Specified by:
startsWith
in interfacePath
-
startsWith
- Specified by:
startsWith
in interfacePath
-
endsWith
-
endsWith
-
normalize
-
resolve
-
resolve
-
resolveSibling
- Specified by:
resolveSibling
in interfacePath
-
resolveSibling
- Specified by:
resolveSibling
in interfacePath
-
relativize
- Specified by:
relativize
in interfacePath
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePath
in interfacePath
-
toRealPath
- Specified by:
toRealPath
in 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:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Throws:
IOException
-
register
@NotNull public @NotNull WatchKey register(@NotNull @NotNull WatchService watcher, WatchEvent.Kind<?> @NotNull ... events) throws IOException - Specified by:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Throws:
IOException
-
iterator
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Path>
- Specified by:
compareTo
in interfacePath
-
getPathString
-
getParts
-
toString
-
equals
-
hashCode
public int hashCode()
-