public class JkZipTree extends JkAbstractPathTree<JkZipTree> implements java.io.Closeable
JkPathTree
for zip path tree located in a zip file.
Instances are supposed to be closed by the user code, in a try-with-resource statement or
in a finally clause.JkAbstractPathTree.FileChange, JkAbstractPathTree.JkPathTreeStream
rootSupplier
Modifier and Type | Method and Description |
---|---|
void |
close() |
JkZipTree |
createIfNotExist()
Creates root directory if not exists.
|
protected JkZipTree |
newInstance(java.util.function.Supplier<java.nio.file.Path> supplier,
JkPathMatcher pathMatcher) |
static JkZipTree |
of(java.nio.file.Path zipFile)
Creates a path tree from a zip file.
|
protected JkZipTree |
withRoot(java.nio.file.Path newRoot) |
andMatcher, andMatching, andMatching, andMatching, checksum, containFiles, copyFile, copyTo, count, deleteContent, deleteRoot, deleteRootIfExist, exists, get, getFiles, getMatcher, getRelativeFiles, getRoot, goTo, hasFilter, importDir, importFile, importFiles, importTree, of, resolvedTo, stream, streamBreathFirst, toString, watch, watch, watch, withMatcher, zipTo
public static JkZipTree of(java.nio.file.Path zipFile)
protected JkZipTree newInstance(java.util.function.Supplier<java.nio.file.Path> supplier, JkPathMatcher pathMatcher)
newInstance
in class JkAbstractPathTree<JkZipTree>
protected JkZipTree withRoot(java.nio.file.Path newRoot)
withRoot
in class JkAbstractPathTree<JkZipTree>
public JkZipTree createIfNotExist()
JkAbstractPathTree
createIfNotExist
in class JkAbstractPathTree<JkZipTree>
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable