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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResultArchiveStorePath(@NotNull FileSystem fileSystem, String path) Create a path from a stringprotectedResultArchiveStorePath(FileSystem fileSystem, boolean absolute, List<String> nameElements, int start, int end) Clone part of a pre-exist Path -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanbooleangetName(int index) intgetRoot()inthashCode()booleaniterator()protected ResultArchiveStorePathnewPathObject(boolean absolute, List<String> nameElements, int start, int end) protected ResultArchiveStorePathnewPathObject(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) booleanstartsWith(String other) booleanstartsWith(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, waitMethods 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:
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
-
toString
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath- Throws:
IOException
-
toFile
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
register
- Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
iterator
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
unAbsolute
-
hashCode
public int hashCode() -
equals
-
newPathObject
-
newPathObject
protected ResultArchiveStorePath newPathObject(boolean absolute, List<String> nameElements, int start, int end)
-