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
public class DirectoryPathTree extends PathTreeWithManifest implements OpenPathTree, Serializable
- 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 DirectoryPathTree()For deserializationDirectoryPathTree(Path dir)DirectoryPathTree(Path dir, PathFilter pathFilter)DirectoryPathTree(Path dir, PathFilter pathFilter, boolean manifestEnabled)protectedDirectoryPathTree(Path dir, PathFilter pathFilter, PathTreeWithManifest pathTreeWithManifest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String relativePath, Consumer<PathVisit> consumer)protected <T> Tapply(String relativePath, Function<PathVisit,T> func, boolean manifestEnabled)voidclose()booleancontains(String relativePath)booleanequals(Object obj)PathTreegetOriginalTree()PathgetPath(String relativePath)Collection<Path>getRoots()inthashCode()booleanisOpen()OpenPathTreeopen()voidwalk(PathVisitor visitor)-
Methods inherited from class io.quarkus.paths.PathTreeWithManifest
apply, getManifest, getMultiReleaseMapping, initManifest, initMultiReleaseMapping, 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
-
DirectoryPathTree
public DirectoryPathTree()
For deserialization
-
DirectoryPathTree
public DirectoryPathTree(Path dir)
-
DirectoryPathTree
public DirectoryPathTree(Path dir, PathFilter pathFilter)
-
DirectoryPathTree
public DirectoryPathTree(Path dir, PathFilter pathFilter, boolean manifestEnabled)
-
DirectoryPathTree
protected DirectoryPathTree(Path dir, PathFilter pathFilter, PathTreeWithManifest pathTreeWithManifest)
-
-
Method Detail
-
getRoots
public Collection<Path> getRoots()
-
walk
public void walk(PathVisitor visitor)
-
apply
protected <T> T apply(String relativePath, Function<PathVisit,T> func, boolean manifestEnabled)
- Specified by:
applyin classPathTreeWithManifest
-
getPath
public Path getPath(String relativePath)
- Specified by:
getPathin interfaceOpenPathTree
-
open
public OpenPathTree open()
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceOpenPathTree
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getOriginalTree
public PathTree getOriginalTree()
- Specified by:
getOriginalTreein interfaceOpenPathTree
-
-