Package io.quarkus.paths
Class ArchivePathTree.OpenArchivePathTree
- java.lang.Object
-
- io.quarkus.paths.PathTreeWithManifest
-
- io.quarkus.paths.DirectoryPathTree
-
- io.quarkus.paths.ArchivePathTree.OpenArchivePathTree
-
- All Implemented Interfaces:
OpenPathTree,PathTree,Closeable,Serializable,AutoCloseable
- Enclosing class:
- ArchivePathTree
protected class ArchivePathTree.OpenArchivePathTree extends DirectoryPathTree
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.quarkus.paths.PathTreeWithManifest
JAVA_VERSION, manifestEnabled, manifestInitialized, multiReleaseMapping
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOpenArchivePathTree(FileSystem fs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String relativePath, Consumer<PathVisit> consumer)Consumes a given path relative to the root of the tree.protected <T> Tapply(String relativePath, Function<PathVisit,T> func, boolean manifestEnabled)voidclose()booleancontains(String relativePath)Checks whether the tree contains a relative path.PathTreegetOriginalTree()PathgetPath(String relativePath)protected voidinitManifest(Manifest m)protected voidinitMultiReleaseMapping(Map<String,String> mrMapping)booleanisOpen()protected ReentrantReadWriteLock.ReadLockreadLock()voidwalk(PathVisitor visitor)Walks the tree.protected ReentrantReadWriteLock.WriteLockwriteLock()-
Methods inherited from class io.quarkus.paths.DirectoryPathTree
equals, getRoots, hashCode, open
-
Methods inherited from class io.quarkus.paths.PathTreeWithManifest
apply, getManifest, getMultiReleaseMapping, isMultiReleaseJar, manifestReadLock, manifestWriteLock, toMultiReleaseRelativePath
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.paths.PathTree
apply, getManifest, isEmpty
-
-
-
-
Constructor Detail
-
OpenArchivePathTree
protected OpenArchivePathTree(FileSystem fs)
-
-
Method Detail
-
readLock
protected ReentrantReadWriteLock.ReadLock readLock()
-
writeLock
protected ReentrantReadWriteLock.WriteLock writeLock()
-
initManifest
protected void initManifest(Manifest m)
- Overrides:
initManifestin classPathTreeWithManifest
-
initMultiReleaseMapping
protected void initMultiReleaseMapping(Map<String,String> mrMapping)
- Overrides:
initMultiReleaseMappingin classPathTreeWithManifest
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceOpenPathTree- Overrides:
isOpenin classDirectoryPathTree
-
apply
protected <T> T apply(String relativePath, Function<PathVisit,T> func, boolean manifestEnabled)
- Overrides:
applyin classDirectoryPathTree
-
accept
public void accept(String relativePath, Consumer<PathVisit> consumer)
Description copied from interface:PathTreeConsumes a given path relative to the root of the tree. If the path isn't found in the tree, thePathVisitargument passed to the consumer will benull.- Specified by:
acceptin interfacePathTree- Overrides:
acceptin classDirectoryPathTree- Parameters:
relativePath- relative path to consumeconsumer- path consumer
-
walk
public void walk(PathVisitor visitor)
Description copied from interface:PathTreeWalks the tree.- Specified by:
walkin interfacePathTree- Overrides:
walkin classDirectoryPathTree- Parameters:
visitor- path visitor
-
contains
public boolean contains(String relativePath)
Description copied from interface:PathTreeChecks whether the tree contains a relative path.- Specified by:
containsin interfacePathTree- Overrides:
containsin classDirectoryPathTree- Parameters:
relativePath- path relative to the root of the tree- Returns:
- true, in case the tree contains the path, otherwise - false
-
getPath
public Path getPath(String relativePath)
- Specified by:
getPathin interfaceOpenPathTree- Overrides:
getPathin classDirectoryPathTree
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classDirectoryPathTree- Throws:
IOException
-
getOriginalTree
public PathTree getOriginalTree()
- Specified by:
getOriginalTreein interfaceOpenPathTree- Overrides:
getOriginalTreein classDirectoryPathTree
-
-