| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | |
| private static Map. | |
| private static Optional | Returns: anOptional containing the trimmed value, or empty if null or blankthe attributes container, may be attributes, String nullthe name of the attribute name)Extract and trims an attribute value from the given attributes object. |
| private static Optional | Returns: anOptional containing the first non-blank attribute value, or emptythe manifest to search in, may be manifest, String... nullone or more attribute names to look for attributeNames)Searches for the given attribute names in the main attributes first. |
| public static void | |
| private static Optional | readManifest()
Resolves and parses the |
| ThisLib | back to summary |
|---|---|
| private ThisLib() | |
| buildInfo | back to summary |
|---|---|
| pack-priv static String buildInfo(Manifest manifest) Builds the formatted metadata text printed when the JAR file is executed directly. | |
| entry | back to summary |
|---|---|
| private static Map. Creates an immutable map entry representing a key-value metadata pair. | |
| findInAttributes | back to summary |
|---|---|
| private static Optional Extract and trims an attribute value from the given attributes object.
| |
| getAttribute | back to summary |
|---|---|
| private static Optional Searches for the given attribute names in the main attributes first. If not found, searches across all named individual sections in the manifest. | |
| main | back to summary |
|---|---|
| public static void main(String[] args) Main entry point when the JAR file is executed directly.
Reads the
| |
| readManifest | back to summary |
|---|---|
| private static Optional Resolves and parses the | |