Package io.smallrye.common.io.jar
Class JarFiles
java.lang.Object
io.smallrye.common.io.jar.JarFiles
Java 9+ variant of a JDK-specific class for working with
JarFiles.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JarFileReturns an equivalent ofnew JarFile(file).static JarFileReturns an equivalent ofnew JarFile(file, verify).static JarFileReturns an equivalent ofnew JarFile(name).static JarFileReturns an equivalent ofnew JarFile(name, verify).static booleanisMultiRelease(JarFile jarFile) Returns true if thisJarFileis a multi-release jar.
-
Constructor Details
-
JarFiles
public JarFiles()
-
-
Method Details
-
create
Returns an equivalent ofnew JarFile(name). On Java 8, that's exactly what is returned. On Java 9+, an equivalent that is multi-release-enabled is returned.- Throws:
IOException
-
create
Returns an equivalent ofnew JarFile(name, verify). On Java 8, that's exactly what is returned. On Java 9+, an equivalent that is multi-release-enabled is returned.- Throws:
IOException
-
create
Returns an equivalent ofnew JarFile(file). On Java 8, that's exactly what is returned. On Java 9+, an equivalent that is multi-release-enabled is returned.- Throws:
IOException
-
create
Returns an equivalent ofnew JarFile(file, verify). On Java 8, that's exactly what is returned. On Java 9+, an equivalent that is multi-release-enabled is returned.- Throws:
IOException
-
isMultiRelease
Returns true if thisJarFileis a multi-release jar. On Java 8 this is done by browsing the manifest. On Java 9+, there is a isMultiRelease method
-