Package io.quarkus.paths
Class ArchivePathTree.OpenArchivePathTree
java.lang.Object
io.quarkus.paths.PathTreeWithManifest
io.quarkus.paths.OpenContainerPathTree
io.quarkus.paths.ArchivePathTree.OpenArchivePathTree
- All Implemented Interfaces:
OpenPathTree,PathTree,Closeable,AutoCloseable
- Enclosing class:
- ArchivePathTree
-
Field Summary
Fields inherited from class io.quarkus.paths.OpenContainerPathTree
pathFilterFields 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 PathThis is the path to the container.protected PathThis is the path to the container.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.OpenContainerPathTree
equals, getRoots, hashCode, openMethods inherited from class io.quarkus.paths.PathTreeWithManifest
apply, getManifestAttributes, 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
acceptAll, apply, getManifestAttributes, isEmpty
-
Constructor Details
-
OpenArchivePathTree
-
-
Method Details
-
getContainerPath
Description copied from class:OpenContainerPathTreeThis is the path to the container.In the case of a zip archive, it's the path of the archive. In the case of a directory, it's the directory.
Should only be used for equals/hashCode.
- Specified by:
getContainerPathin classOpenContainerPathTree
-
getRootPath
Description copied from class:OpenContainerPathTreeThis is the path to the container.In the case of a zip archive, it's the path to the root of the archive (i.e. a ZipPath). In the case of a directory, it's the directory.
Should be used for any read operation on the container.
- Specified by:
getRootPathin classOpenContainerPathTree
-
readLock
-
writeLock
-
initManifest
- Overrides:
initManifestin classPathTreeWithManifest
-
initMultiReleaseMapping
- Overrides:
initMultiReleaseMappingin classPathTreeWithManifest
-
isOpen
public boolean isOpen() -
apply
- Overrides:
applyin classOpenContainerPathTree
-
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 classOpenContainerPathTree- Parameters:
relativePath- relative path to consumeconsumer- path consumer
-
walk
Description copied from interface:PathTreeWalks the tree.- Specified by:
walkin interfacePathTree- Overrides:
walkin classOpenContainerPathTree- Parameters:
visitor- path visitor
-
contains
Description copied from interface:PathTreeChecks whether the tree contains a relative path.- Specified by:
containsin interfacePathTree- Overrides:
containsin classOpenContainerPathTree- 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 classOpenContainerPathTree
-
close
- Throws:
IOException
-
getOriginalTree
-