Package jenkins.util

Class ResourceBundleUtil

    • Method Detail

      • getBundle

        @NonNull
        public static net.sf.json.JSONObject getBundle​(@NonNull
                                                       String baseName)
                                                throws MissingResourceException
        Get a bundle JSON using the default Locale.
        Parameters:
        baseName - The bundle base name.
        Returns:
        The bundle JSON.
        Throws:
        MissingResourceException - Missing resource bundle.
      • getBundle

        @NonNull
        public static net.sf.json.JSONObject getBundle​(@NonNull
                                                       String baseName,
                                                       @NonNull
                                                       Locale locale)
                                                throws MissingResourceException
        Get a bundle JSON using the supplied Locale.
        Parameters:
        baseName - The bundle base name.
        locale - The Locale.
        Returns:
        The bundle JSON.
        Throws:
        MissingResourceException - Missing resource bundle.