Package dev.galasa.framework.spi.ras
Class ResultArchiveStorePath
java.lang.Object
dev.galasa.framework.spi.ras.ResultArchiveStorePath
Create a Result Archive Store specific version of the Path
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ResultArchiveStorePath
(@NotNull FileSystem fileSystem, String path) Create a path from a stringprotected
ResultArchiveStorePath
(FileSystem fileSystem, boolean absolute, List<String> nameElements, int start, int end) Clone part of a pre-exist Path -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
boolean
getName
(int index) int
getRoot()
int
hashCode()
boolean
iterator()
protected ResultArchiveStorePath
newPathObject
(boolean absolute, List<String> nameElements, int start, int end) protected ResultArchiveStorePath
newPathObject
(String newPath) 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) subpath
(int beginIndex, int endIndex) toFile()
toRealPath
(LinkOption... options) 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
-
Field Details
-
fileSystem
-
nameElements
-
absolute
protected final boolean absolute
-
-
Constructor Details
-
ResultArchiveStorePath
Create a path from a string- Parameters:
fileSystem
- - The filesystem the path will be used onpath
- - The path to convert
-
ResultArchiveStorePath
protected ResultArchiveStorePath(FileSystem fileSystem, boolean absolute, List<String> nameElements, int start, int end) Clone part of a pre-exist Path- Parameters:
fileSystem
- - The filesystem the path will be used onabsolute
- - Is th path absolute, ie starts with /nameElements
- - The elements of the pathstart
- - The start element to cloneend
- - The end element to clone, with is the last + 1
-
-
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
-
toString
-
toAbsolutePath
- Specified by:
toAbsolutePath
in interfacePath
-
toRealPath
- Specified by:
toRealPath
in interfacePath
- Throws:
IOException
-
toFile
-
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
-
register
- 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
-
unAbsolute
-
hashCode
public int hashCode() -
equals
-
newPathObject
-
newPathObject
protected ResultArchiveStorePath newPathObject(boolean absolute, List<String> nameElements, int start, int end)
-