Package io.smallrye.common.io.jar
Class JarFiles
- java.lang.Object
-
- io.smallrye.common.io.jar.JarFiles
-
public class JarFiles extends Object
Java 9+ variant of a JDK-specific class for working withJarFiles.
-
-
Constructor Summary
Constructors Constructor Description JarFiles()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JarFilecreate(File file)Returns an equivalent ofnew JarFile(file).static JarFilecreate(File file, boolean verify)Returns an equivalent ofnew JarFile(file, verify).static JarFilecreate(String name)Returns an equivalent ofnew JarFile(name).static JarFilecreate(String name, boolean verify)Returns an equivalent ofnew JarFile(name, verify).static booleanisMultiRelease(JarFile jarFile)Returns true if thisJarFileis a multi-release jar.
-
-
-
Method Detail
-
create
public static JarFile create(String name) throws IOException
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
public static JarFile create(String name, boolean verify) throws IOException
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
public static JarFile create(File file) throws IOException
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
public static JarFile create(File file, boolean verify) throws IOException
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
-
-