/** * Find a localized and/or branded value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key, Locale locale) { return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US), locale); }
/** * Find a localized and/or branded value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US)); }
/** Find a localized value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue (Attributes attr, Attributes.Name key, Locale locale) { return (String)getLocalizedValue (attr2Map (attr), key.toString ().toLowerCase (Locale.US), locale); }
/** * Find a localized and/or branded value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US)); }
/** Find a localized value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue (Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return (String)getLocalizedValue (attr2Map (attr), key.toString ().toLowerCase (Locale.US)); }
/** * Find a localized and/or branded value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key, Locale locale) { return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US), locale); }
/** Find a localized value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue (Attributes attr, Attributes.Name key, Locale locale) { return (String)getLocalizedValue (attr2Map (attr), key.toString ().toLowerCase (Locale.US), locale); }
/** * Find a localized and/or branded value in a JAR manifest. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @param locale the locale to use * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key, Locale locale) { return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US), locale); }
/** * Find a localized and/or branded value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue(Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return getLocalizedValue(attr2Map(attr), key.toString().toLowerCase(Locale.US)); }
/** Find a localized value in a JAR manifest in the default system locale. * @param attr the manifest attributes * @param key the key to look for (case-insensitive) * @return the value if found, else <code>null</code> */ public static String getLocalizedValue (Attributes attr, Attributes.Name key) { // Yes, US locale is intentional! The attribute name may only be ASCII anyway. // It is necessary to lowercase it *as ASCII* as in Turkish 'I' does not go to 'i'! return (String)getLocalizedValue (attr2Map (attr), key.toString ().toLowerCase (Locale.US)); }