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
- See Also:
-
Field Summary
Fields inherited from class io.quarkus.paths.PathTreeWithManifest
JAVA_VERSION, manifestEnabled, manifestInitialized, multiReleaseMapping -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConsumes a given path relative to the root of the tree.protected <T> Tvoidclose()booleanChecks whether the tree contains a relative path.protected voidprotected voidinitMultiReleaseMapping(Map<String, String> mrMapping) booleanisOpen()protected ReentrantReadWriteLock.ReadLockreadLock()voidwalk(PathVisitor visitor) Walks the tree.protected ReentrantReadWriteLock.WriteLockMethods inherited from class io.quarkus.paths.DirectoryPathTree
equals, getRoots, hashCode, openMethods inherited from class io.quarkus.paths.PathTreeWithManifest
apply, getManifest, getMultiReleaseMapping, isMultiReleaseJar, manifestReadLock, manifestWriteLock, toMultiReleaseRelativePathMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.paths.PathTree
apply, getManifest, isEmpty
-
Constructor Details
-
OpenArchivePathTree
-
-
Method Details
-
readLock
-
writeLock
-
initManifest
- Overrides:
initManifestin classPathTreeWithManifest
-
initMultiReleaseMapping
- Overrides:
initMultiReleaseMappingin classPathTreeWithManifest
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceOpenPathTree- Overrides:
isOpenin classDirectoryPathTree
-
apply
- Overrides:
applyin classDirectoryPathTree
-
accept
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
Description copied from interface:PathTreeWalks the tree.- Specified by:
walkin interfacePathTree- Overrides:
walkin classDirectoryPathTree- Parameters:
visitor- path visitor
-
contains
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
- Specified by:
getPathin interfaceOpenPathTree- Overrides:
getPathin classDirectoryPathTree
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classDirectoryPathTree- Throws:
IOException
-
getOriginalTree
- Specified by:
getOriginalTreein interfaceOpenPathTree- Overrides:
getOriginalTreein classDirectoryPathTree
-