public class ManifestHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static ManifestHelper |
createIfPresent(Jar jar,
Locale locale)
Create a
ManifestHelper if the specified jar contains a manifest,
otherwise return null. |
Parameters |
getHeader(String headerName,
boolean allowDuplicateAttributes)
Gets the header value for the locale of this helper instance.
|
String |
getHeaderAsString(String headerName)
Gets the header value for the locale of this helper instance.
|
public static ManifestHelper createIfPresent(Jar jar, Locale locale)
ManifestHelper if the specified jar contains a manifest,
otherwise return null.jar - the jar, must not be nulllocale - the locale, must not be nullnull if the jar does not contain a manifestpublic Parameters getHeader(String headerName, boolean allowDuplicateAttributes)
Values will be search from the most specific to the less specific locale including unlocalized (empty locale) value.
headerName - the header to extract, must not be nullallowDuplicateAttributes - true if the header allow duplicate
attributesnullpublic String getHeaderAsString(String headerName)
Values will be search from the most specific to the less specific locale including unlocalized (empty locale) value.
headerName - the header to extract, must not be nullnullCopyright © 2021. All rights reserved.