package saker.util.io
public class JarFileUtils
Utility class containing functions dealing with JAR files.
public static JarFile | Creates a new JarFile that supports the Multi-Release rules if the current JRE is version 9 or later. |
public static JarFile | Creates a new JarFile that supports the Multi-Release rules if the current JRE is version 9 or later. |
public static Name | Gets the manifest attribute name that has the value of Multi-Release . |
Creates a new JarFile that supports the Multi-Release rules if the current JRE is version 9 or later.
The created JAR file will access the resources contained in it with respect to the current JRE version. This is only of importance if the current JRE is version 9 or later.
fileThe JAR file location.
The opened JAR file.
IOExceptionIn case of I/O error.
NullPointerExceptionIf the argument is
null
.Creates a new JarFile that supports the Multi-Release rules if the current JRE is version 9 or later.
The created JAR file will access the resources contained in it with respect to the current JRE version. This is only of importance if the current JRE is version 9 or later.
pathThe path to the JAR file.
The opened JAR file.
IOExceptionIn case of I/O error.
NullPointerExceptionIf the argument is
null
.Gets the manifest attribute name that has the value of
Multi-Release
.The attribute name.