Class Localizer


  • @Deprecated(since="2021-07-29")
    public final class Localizer
    extends java.lang.Object
    Deprecated.
    This API is deprecated as Apache Abdera is a retired project since 2017.
    Wraps ResourceBundle with a couple of additional, useful methods. Used for l10n
    • Constructor Summary

      Constructors 
      Constructor Description
      Localizer()
      Deprecated.
       
      Localizer​(java.lang.String bundle)
      Deprecated.
       
      Localizer​(java.lang.String bundle, java.util.Locale locale)
      Deprecated.
       
      Localizer​(java.util.Locale locale, java.lang.ClassLoader loader)
      Deprecated.
       
      Localizer​(java.util.ResourceBundle bundle)
      Deprecated.
       
      Localizer​(java.util.ResourceBundle bundle, java.util.Locale locale)
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String format​(java.lang.String key, java.lang.Object... args)
      Deprecated. 
      java.lang.String formatValue​(java.lang.String key, java.lang.Object... args)
      Deprecated. 
      static java.lang.String get​(java.lang.String key)
      Deprecated.
       
      static java.lang.String get​(java.lang.String key, java.lang.String defaultValue)
      Deprecated.
       
      static Localizer getInstance()
      Deprecated.
       
      java.util.Locale getLocale()
      Deprecated.
       
      java.lang.String getValue​(java.lang.String key)
      Deprecated.
       
      java.lang.String getValue​(java.lang.String key, java.lang.String defaultValue)
      Deprecated.
       
      static void setInstance​(Localizer localizer)
      Deprecated.
       
      static java.lang.String sprintf​(java.lang.String key, java.lang.Object... args)
      Deprecated.
       
      java.lang.String sprintfValue​(java.lang.String key, java.lang.Object... args)
      Deprecated.
      Use the JDK 1.5 sprintf style Formatter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Localizer

        public Localizer()
        Deprecated.
      • Localizer

        public Localizer​(java.util.Locale locale,
                         java.lang.ClassLoader loader)
        Deprecated.
      • Localizer

        public Localizer​(java.lang.String bundle)
        Deprecated.
      • Localizer

        public Localizer​(java.lang.String bundle,
                         java.util.Locale locale)
        Deprecated.
      • Localizer

        public Localizer​(java.util.ResourceBundle bundle)
        Deprecated.
      • Localizer

        public Localizer​(java.util.ResourceBundle bundle,
                         java.util.Locale locale)
        Deprecated.
    • Method Detail

      • getInstance

        public static Localizer getInstance()
        Deprecated.
      • setInstance

        public static void setInstance​(Localizer localizer)
        Deprecated.
      • get

        public static java.lang.String get​(java.lang.String key)
        Deprecated.
      • get

        public static java.lang.String get​(java.lang.String key,
                                           java.lang.String defaultValue)
        Deprecated.
      • format

        public static java.lang.String format​(java.lang.String key,
                                              java.lang.Object... args)
        Deprecated.
      • sprintf

        public static java.lang.String sprintf​(java.lang.String key,
                                               java.lang.Object... args)
        Deprecated.
      • getLocale

        public java.util.Locale getLocale()
        Deprecated.
      • getValue

        public java.lang.String getValue​(java.lang.String key)
        Deprecated.
      • getValue

        public java.lang.String getValue​(java.lang.String key,
                                         java.lang.String defaultValue)
        Deprecated.
      • formatValue

        public java.lang.String formatValue​(java.lang.String key,
                                            java.lang.Object... args)
        Deprecated.
        Use the pre-JDK 1.5 MessageFormat. This should be avoided. Applications should use the sprintfValue method instead
        See Also:
        springfValue
      • sprintfValue

        public java.lang.String sprintfValue​(java.lang.String key,
                                             java.lang.Object... args)
        Deprecated.
        Use the JDK 1.5 sprintf style Formatter