Package io.quarkus.paths
Class DirectoryPathTree
java.lang.Object
io.quarkus.paths.PathTreeWithManifest
io.quarkus.paths.DirectoryPathTree
- All Implemented Interfaces:
OpenPathTree,PathTree,Closeable,Serializable,AutoCloseable
- Direct Known Subclasses:
ArchivePathTree.OpenArchivePathTree
- See Also:
-
Field Summary
Fields inherited from class io.quarkus.paths.PathTreeWithManifest
JAVA_VERSION, manifestEnabled, manifestInitialized, multiReleaseMapping -
Constructor Summary
ConstructorsModifierConstructorDescriptionFor deserializationDirectoryPathTree(Path dir) DirectoryPathTree(Path dir, PathFilter pathFilter) DirectoryPathTree(Path dir, PathFilter pathFilter, boolean manifestEnabled) protectedDirectoryPathTree(Path dir, PathFilter pathFilter, PathTreeWithManifest pathTreeWithManifest) -
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.booleangetRoots()The roots of the path tree.inthashCode()booleanisOpen()open()Returns anOpenPathTreefor this tree, which is supposed to be closed at the end of processing.voidwalk(PathVisitor visitor) Walks the tree.Methods inherited from class io.quarkus.paths.PathTreeWithManifest
apply, getManifest, getMultiReleaseMapping, initManifest, initMultiReleaseMapping, 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, getManifest, isEmpty
-
Constructor Details
-
DirectoryPathTree
public DirectoryPathTree()For deserialization -
DirectoryPathTree
-
DirectoryPathTree
-
DirectoryPathTree
-
DirectoryPathTree
protected DirectoryPathTree(Path dir, PathFilter pathFilter, PathTreeWithManifest pathTreeWithManifest)
-
-
Method Details
-
getRoots
Description copied from interface:PathTreeThe roots of the path tree. -
walk
Description copied from interface:PathTreeWalks the tree. -
apply
- Specified by:
applyin classPathTreeWithManifest
-
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. -
contains
Description copied from interface:PathTreeChecks whether the tree contains a relative path. -
getPath
- Specified by:
getPathin interfaceOpenPathTree
-
open
Description copied from interface:PathTreeReturns anOpenPathTreefor this tree, which is supposed to be closed at the end of processing. It is meant to be an optimization when processing multiple paths of path trees that represent archives. If a path tree does not represent an archive but a directory, for example, this method is expected to be a no-op, returning the original tree as an instance ofOpenPathTree.- Specified by:
openin interfacePathTree- Returns:
- an instance of
OpenPathTreefor this path tree
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceOpenPathTree
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getOriginalTree
- Specified by:
getOriginalTreein interfaceOpenPathTree
-
hashCode
public int hashCode() -
equals
-