public class Manifests extends Object
| Constructor and Description |
|---|
Manifests() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAttribute(Class clazz,
String attribute)
Returns the given
attribute of the Manifest of the jar that contains the given clazz. |
static String |
getAttribute(Class clazz,
String attribute,
String defaultValue)
Returns the given
attribute of the Manifest of the jar that contains the given clazz. |
static Manifest |
getManifest(Class clazz)
Returns the manifest of the jar file that contains the given
clazz. |
@Nullable public static Manifest getManifest(@Nonnull Class clazz)
Returns the manifest of the jar file that contains the given clazz.
If the MANIFEST is not found, null is returned.
clazz - clazz@Nullable public static String getAttribute(@Nonnull Class clazz, @Nonnull String attribute, @Nullable String defaultValue)
attribute of the Manifest of the jar that contains the given clazz.clazz - attribute - defaultValue - Copyright © 2013-2014. All Rights Reserved.