public class JarManifestParser extends Object
| Constructor and Description |
|---|
JarManifestParser() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
findFirstManifestAttribute(File jarFile,
String... attributes)
Returns the value of the first manifest attribute found in the provided JAR file.
|
public static Optional<String> findFirstManifestAttribute(File jarFile, String... attributes) throws IOException
jarFile - JAR file to parseattributes - Attributes to checkIOException - If there is an error accessing the JARCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.