java.lang.Object
io.smallrye.common.io.jar.JarFiles
Deprecated, for removal: This API element is subject to removal in a future version.
Java 9+ variant of a JDK-specific class for working with
JarFiles.-
Method Summary
Modifier and TypeMethodDescriptionstatic JarFileDeprecated, for removal: This API element is subject to removal in a future version.Returns an equivalent ofnew JarFile(file).static JarFileDeprecated, for removal: This API element is subject to removal in a future version.Returns an equivalent ofnew JarFile(file, verify).static JarFileDeprecated, for removal: This API element is subject to removal in a future version.Returns an equivalent ofnew JarFile(name).static JarFileDeprecated, for removal: This API element is subject to removal in a future version.Returns an equivalent ofnew JarFile(name, verify).static booleanisMultiRelease(JarFile jarFile) Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif thisJarFileis a multi-release jar.
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.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.- Parameters:
name- the file name (must not benull)- Returns:
- an equivalent of
new JarFile(name) - Throws:
IOException- if the operation fails
-
create
Deprecated, for removal: This API element is subject to removal in a future version.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.- Parameters:
name- the file name (must not benull)verify-trueto verify the JAR signatures- Returns:
- an equivalent of
new JarFile(name, verify) - Throws:
IOException- if the operation fails
-
create
Deprecated, for removal: This API element is subject to removal in a future version.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.- Parameters:
file- the file (must not benull)- Returns:
- an equivalent of
new JarFile(file) - Throws:
IOException- if the operation fails
-
create
Deprecated, for removal: This API element is subject to removal in a future version.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.- Parameters:
file- the file (must not benull)verify-trueto verify the JAR signatures- Returns:
- an equivalent of
new JarFile(file, verify) - Throws:
IOException- if the operation fails
-
isMultiRelease
Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif thisJarFileis a multi-release jar. On Java 8 this is done by browsing the manifest. On Java 9+, there is aisMultiReleasemethod.- Parameters:
jarFile- the JAR file (must not benull)- Returns:
trueif thisJarFileis a multi-release jar
-