Package io.quarkus.paths
Class DirectoryPathTree
java.lang.Object
io.quarkus.paths.PathTreeWithManifest
io.quarkus.paths.OpenContainerPathTree
io.quarkus.paths.DirectoryPathTree
- All Implemented Interfaces:
OpenPathTree,PathTree,Closeable,Serializable,AutoCloseable
- See Also:
-
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
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 TypeMethodDescriptionvoidclose()protected PathThis is the path to the container.Returns a set of resource names provided by this path tree.protected PathThis is the path to the container.booleanWhether the content of this tree comes from an archive or not.booleanisEmpty()Checks whether the tree is emptybooleanisOpen()Methods inherited from class io.quarkus.paths.OpenContainerPathTree
accept, apply, contains, equals, getPath, getRoots, hashCode, open, toString, walk, walkIfContains, walkRawMethods inherited from class io.quarkus.paths.PathTreeWithManifest
apply, getManifestAttributes, getMultiReleaseMapping, initManifest, initMultiReleaseMapping, isMultiReleaseJar, manifestReadLock, manifestWriteLock, toMultiReleaseResourceNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.paths.PathTree
acceptAll, apply, filter, getManifestAttributes
-
Constructor Details
-
DirectoryPathTree
public DirectoryPathTree()For deserialization -
DirectoryPathTree
-
DirectoryPathTree
-
DirectoryPathTree
-
DirectoryPathTree
protected DirectoryPathTree(Path dir, PathFilter pathFilter, PathTreeWithManifest pathTreeWithManifest)
-
-
Method Details
-
isArchiveOrigin
public boolean isArchiveOrigin()Description copied from interface:PathTreeWhether the content of this tree comes from an archive or not.This is useful for instance when you want to determine if the resources can be updated in dev mode.
- Specified by:
isArchiveOriginin interfacePathTree
-
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
-
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
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceOpenPathTree
-
isEmpty
public boolean isEmpty()Description copied from interface:PathTreeChecks whether the tree is empty -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getOriginalTree
- Specified by:
getOriginalTreein interfaceOpenPathTree
-
getResourceNames
Description copied from interface:PathTreeReturns a set of resource names provided by this path tree. The set may include both directories and files.- Specified by:
getResourceNamesin interfacePathTree- Returns:
- a set of resource names provided by this path tree
-