public final class MainAttributes
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.jar.Attributes |
attributes
Manifest from jar
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String name)
Retrieve the value of attribute with the specified name, or null if not
present
|
static MainAttributes |
of(java.io.File jar)
Create a MainAttributes instance for the supplied jar file
|
static MainAttributes |
of(java.net.URI uri)
Create a MainAttributes instance for the supplied jar file
|
public final java.lang.String get(java.lang.String name)
name - attribute namepublic static MainAttributes of(java.io.File jar)
jar - jar filepublic static MainAttributes of(java.net.URI uri)
uri - jar file location