Modifier and Type | Field and Description |
---|---|
private JarInputStream |
jar
JAR file input stream.
|
static String |
MANIFEST_BUNDLE_VERSION
JManifest attribute containing version string.
|
Constructor and Description |
---|
Jar(File jarfile)
Creates an instance of JAR file.
|
Jar(String jarfile)
Creates an instance of JAR file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close JAR file and release all allocated resources.
|
String |
getBundleVersion()
Returns the bundle version string from Manifest file.
|
Manifest |
getManifest()
Returns the
Manifest for this JAR file, or
null if none. |
public static final String MANIFEST_BUNDLE_VERSION
private final JarInputStream jar
public Jar(File jarfile)
jarfile
- JAR file to be opened.public Jar(String jarfile)
jarfile
- JAR file to be opened.public Manifest getManifest()
Manifest
for this JAR file, or
null
if none.
Manifest
for this JAR file, or
null
if none.public String getBundleVersion()
null
when no such attribute exists.public void close()
Copyright © 2013. All Rights Reserved.