Class ZipFileTree<T extends InputResource>
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.core.DefaultResources<T>
org.jdrupes.builder.core.ZipFileTree<T>
- Type Parameters:
T- the type of theFileResources in the tree.
public class ZipFileTree<T extends InputResource>
extends DefaultResources<T>
implements InputTree<T>
The default implementation of a
FileTree.-
Nested Class Summary
Nested classes/interfaces inherited from interface InputTree
InputTree.Entry<T> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedZipFileTree(ResourceType<?> type, Path zipFile, String[] patterns) Returns a new file tree. -
Method Summary
Modifier and TypeMethodDescriptionasOf()The instant at which this resource was created or last modified.entries()Returns the paths of the files in this file tree relative to its root.Add a ant-style path pattern to exclude from the tree.paths()Returns the relative paths of the entries in this tree.stream()Retrieves the resources as a stream.Methods inherited from class ResourceObject
isLocked, name, name, typeMethods inherited from interface Resource
asOfLocalized, cleanup, isNewerThan, name, type
-
Constructor Details
-
ZipFileTree
Returns a new file tree. The file tree includes all files matchingpatternin the tree provided by the zip file.- Parameters:
type- the resource typezipFile- the zip filepatterns- the patterns
-
-
Method Details
-
exclude
Description copied from interface:InputTreeAdd a ant-style path pattern to exclude from the tree.- Specified by:
excludein interfaceInputTree<T extends InputResource>- Parameters:
pattern- the pattern- Returns:
- the file tree
-
asOf
-
stream
-
paths
-
entries
Description copied from interface:InputTreeReturns the paths of the files in this file tree relative to its root.- Specified by:
entriesin interfaceInputTree<T extends InputResource>- Returns:
- the stream
-