Class DefaultJarFile
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.core.DefaultFileResource
org.jdrupes.builder.java.DefaultJarFile
- All Implemented Interfaces:
FileResource, IOResource, Proxyable, Resource, JarFile
- Direct Known Subclasses:
DefaultLibraryJarFile
A
FileResource that represents a Java jar.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultJarFile(ResourceType<? extends JarFile> type, Path path) Instantiates a new jar file. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends JarFile>
TcreateJarFile(ResourceType<T> type, Path path) Creates a jar file.Methods inherited from class DefaultFileResource
asOf, createFileResource, equals, hashCode, inputStream, outputStream, path, toStringMethods inherited from class ResourceObject
typeMethods inherited from interface FileResource
delete, pathMethods inherited from interface IOResource
inputStream, outputStreamMethods inherited from interface Resource
asOf, asOfLocalized, type
-
Constructor Details
-
DefaultJarFile
Instantiates a new jar file.- Parameters:
type- the resource typepath- the path
-
-
Method Details
-
createJarFile
Creates a jar file.- Type Parameters:
T- the generic type- Parameters:
type- the typepath- the path- Returns:
- the jar file
-