Class Loggings

    • Nested Class Summary

      • Nested classes/interfaces inherited from class ResourceBundle

        ResourceBundle.Control
    • Field Summary

      • Fields inherited from class ResourceBundle

        parent
    • Constructor Summary

      Constructors 
      Constructor Description
      Loggings()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LogRecord format​(Level level, int key)
      Gets a log record for the given key from this resource bundle or one of its parents.
      static LogRecord format​(Level level, int key, Object arg0)
      Gets a log record for the given key.
      static LogRecord format​(Level level, int key, Object arg0, Object arg1)
      Gets a log record for the given key.
      static LogRecord format​(Level level, int key, Object arg0, Object arg1, Object arg2)
      Gets a log record for the given key.
      static LogRecord format​(Level level, int key, Object arg0, Object arg1, Object arg2, Object arg3)
      Gets a log record for the given key.
      static Loggings getResources​(Locale locale)
      Returns resources in the given locale.
      • Methods inherited from class ResourceBundle

        clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Loggings

        public Loggings()
    • Method Detail

      • getResources

        public static Loggings getResources​(Locale locale)
                                     throws MissingResourceException
        Returns resources in the given locale.
        Parameters:
        locale - The locale, or null for the default locale.
        Returns:
        Resources in the given locale.
        Throws:
        MissingResourceException - if resources can't be found.
      • format

        public static LogRecord format​(Level level,
                                       int key)
                                throws MissingResourceException
        Gets a log record for the given key from this resource bundle or one of its parents.
        Parameters:
        level - The log record level.
        key - The key for the desired string.
        Returns:
        The string for the given key.
        Throws:
        MissingResourceException - If no object for the given key can be found.
      • format

        public static LogRecord format​(Level level,
                                       int key,
                                       Object arg0)
                                throws MissingResourceException
        Gets a log record for the given key. Replaces all occurence of "{0}" with values of arg0.
        Parameters:
        level - The log record level.
        key - The key for the desired string.
        arg0 - Value to substitute to "{0}".
        Returns:
        The formatted string for the given key.
        Throws:
        MissingResourceException - If no object for the given key can be found.
      • format

        public static LogRecord format​(Level level,
                                       int key,
                                       Object arg0,
                                       Object arg1)
                                throws MissingResourceException
        Gets a log record for the given key. Replaces all occurence of "{0}", "{1}", with values of arg0, arg1.
        Parameters:
        level - The log record level.
        key - The key for the desired string.
        arg0 - Value to substitute to "{0}".
        arg1 - Value to substitute to "{1}".
        Returns:
        The formatted string for the given key.
        Throws:
        MissingResourceException - If no object for the given key can be found.
      • format

        public static LogRecord format​(Level level,
                                       int key,
                                       Object arg0,
                                       Object arg1,
                                       Object arg2)
                                throws MissingResourceException
        Gets a log record for the given key. Replaces all occurence of "{0}", "{1}", with values of arg0, arg1, etc.
        Parameters:
        level - The log record level.
        key - The key for the desired string.
        arg0 - Value to substitute to "{0}".
        arg1 - Value to substitute to "{1}".
        arg2 - Value to substitute to "{2}".
        Returns:
        The formatted string for the given key.
        Throws:
        MissingResourceException - If no object for the given key can be found.
      • format

        public static LogRecord format​(Level level,
                                       int key,
                                       Object arg0,
                                       Object arg1,
                                       Object arg2,
                                       Object arg3)
                                throws MissingResourceException
        Gets a log record for the given key. Replaces all occurence of "{0}", "{1}", with values of arg0, arg1, etc.
        Parameters:
        level - The log record level.
        key - The key for the desired string.
        arg0 - Value to substitute to "{0}".
        arg1 - Value to substitute to "{1}".
        arg2 - Value to substitute to "{2}".
        arg3 - Value to substitute to "{3}".
        Returns:
        The formatted string for the given key.
        Throws:
        MissingResourceException - If no object for the given key can be found.