public class JkPathTree extends JkAbstractPathTree<JkPathTree>
JkPathTree
may have some include/exclude filters to include only
or exclude specified files.JkPathTree
, we mean all
files contained in its root directory or subdirectories, matching positively
the filter defined on it.
Path matchers generally rely on glob patterns.
JkAbstractPathTree.FileChange, JkAbstractPathTree.JkPathTreeStream
rootSupplier
Modifier | Constructor and Description |
---|---|
protected |
JkPathTree(java.nio.file.Path rootDir,
JkPathMatcher matcher) |
Modifier and Type | Method and Description |
---|---|
protected JkPathTree |
newInstance(java.util.function.Supplier<java.nio.file.Path> pathSupplier,
JkPathMatcher pathMatcher) |
static JkPathTree |
of(java.nio.file.Path rootDir)
Creates a
JkPathTree having the specified root directory. |
static JkPathTree |
of(java.lang.String rootDir)
Same as {@link #of(Path) but speciying the root dir with a String.
|
JkPathTreeSet |
toSet()
Returns a
JkPathTreeSet containing this tree as its single
element. |
protected JkPathTree |
withRoot(java.nio.file.Path newRoot) |
andMatcher, andMatching, andMatching, andMatching, checksum, containFiles, copyFile, copyTo, count, createIfNotExist, deleteContent, deleteRoot, deleteRootIfExist, exists, get, getFiles, getMatcher, getRelativeFiles, getRoot, goTo, hasFilter, importDir, importFile, importFiles, importTree, resolvedTo, stream, streamBreathFirst, toString, watch, watch, watch, withMatcher, zipTo
protected JkPathTree(java.nio.file.Path rootDir, JkPathMatcher matcher)
public static JkPathTree of(java.nio.file.Path rootDir)
JkPathTree
having the specified root directory.public static JkPathTree of(java.lang.String rootDir)
of(Path)
protected JkPathTree newInstance(java.util.function.Supplier<java.nio.file.Path> pathSupplier, JkPathMatcher pathMatcher)
newInstance
in class JkAbstractPathTree<JkPathTree>
protected JkPathTree withRoot(java.nio.file.Path newRoot)
withRoot
in class JkAbstractPathTree<JkPathTree>
public JkPathTreeSet toSet()
JkPathTreeSet
containing this tree as its single
element.