public final class Metadata extends Object
MANIFEST.MF entries.| Modifier and Type | Field and Description |
|---|---|
static String |
BUNDLE_SPEC_VERSION
Entry name for Bundle Spec Version.
|
static String |
BUNDLE_SYMBOLIC_NAME
Entry name for Bundle Symbolic Name.
|
static String |
BUNDLE_VERSION
Entry name for Bundle Version.
|
static String |
JAR_EXTENSION_NAME
Entry name for Jar Extension Name.
|
static String |
JAR_IMPLEMENTATION_VERSION
Entry name for Jar Implementation Version.
|
static String |
JAR_SPECIFICATION_VERSION
Entry name for Jar Specification Version.
|
| Modifier and Type | Method and Description |
|---|---|
static Metadata |
fromJar(JarFile jar)
Create a new
Metadata instance from a JAR file. |
String |
getBundleSpecVersion()
Get the bundle spec version entry.
|
String |
getBundleSymbolicName()
Get the bundle symbolic name entry.
|
String |
getBundleVersion()
Get the bundle version entry.
|
List<String> |
getErrors()
Get the metadata errors.
|
String |
getJarExtensionName()
Get the jar extension name entry.
|
String |
getjarImplementationVersion()
Get the jar implementation version entry.
|
String |
getJarSpecificationVersion()
Get the jar specification version entry.
|
Properties |
getProperties()
Get the metadata properties.
|
public static final String BUNDLE_SYMBOLIC_NAME
public static final String BUNDLE_SPEC_VERSION
public static final String BUNDLE_VERSION
public static final String JAR_EXTENSION_NAME
public static final String JAR_SPECIFICATION_VERSION
public static final String JAR_IMPLEMENTATION_VERSION
public static Metadata fromJar(JarFile jar) throws IOException
Metadata instance from a JAR file.jar - the JAR file to processMetadata instanceIOException - if an error occurs while reading JAR entriespublic String getBundleSymbolicName()
public String getBundleSpecVersion()
public String getBundleVersion()
public String getJarExtensionName()
public String getJarSpecificationVersion()
public String getjarImplementationVersion()
public Properties getProperties()
Copyright © 2017–2020 Oracle Corporation. All rights reserved.