Class DefaultLibraryJarFile
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.core.DefaultFileResource
org.jdrupes.builder.java.DefaultJarFile
org.jdrupes.builder.java.DefaultLibraryJarFile
- All Implemented Interfaces:
FileResource, IOResource, Proxyable, Resource, ClasspathElement, JarFile, LibraryJarFile
A
FileResource that represents a Java jar.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultLibraryJarFile(ResourceType<? extends JarFile> type, Path path) Instantiates a new library jar file. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends JarFile>
TcreateLibraryJarFile(ResourceType<T> type, Path path) Creates a jar file.Methods inherited from class DefaultJarFile
createJarFileMethods 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 LibraryJarFile
toPathMethods inherited from interface Resource
asOf, asOfLocalized, type
-
Constructor Details
-
DefaultLibraryJarFile
Instantiates a new library jar file.- Parameters:
type- the resource typepath- the path
-
-
Method Details
-
createLibraryJarFile
Creates a jar file.- Type Parameters:
T- the generic type- Parameters:
type- the typepath- the path- Returns:
- the jar file
-