/** * Get a resource bundle with the default class loader and branding. * @param baseName bundle basename * @param locale the locale to use (but still uses {@link #getBranding default branding}) * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle(String baseName, Locale locale) throws MissingResourceException { return getBundle(baseName, locale, getLoader()); }
/** * Get a localized and/or branded file with the default class loader. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @param locale locale of file * @return URL of matching localized file * @throws MissingResourceException if not found * @deprecated Use the <code>nbresloc</code> URL protocol instead. This method does a poor * job of handling resources such as <samp>/some.dir/res.txt</samp> or * <samp>/some/res.txt.sample</samp>. */ @Deprecated public static synchronized URL getLocalizedFile(String baseName, String ext, Locale locale) throws MissingResourceException { return getLocalizedFile(baseName, ext, locale, getLoader()); }
/** * Get a resource bundle with the default class loader and locale/branding. * <strong>Caution:</strong> {@link #getBundle(Class)} is generally * safer when used from a module as this method relies on the module's * classloader to currently be part of the system classloader. NetBeans * does add enabled modules to this classloader, however calls to * this variant of the method made in <a href="@org-openide-modules@/org/openide/modules/ModuleInstall.html#validate()">ModuleInstall.validate</a>, * or made soon after a module is uninstalled (due to background threads) * could fail unexpectedly. * @param baseName bundle basename * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle(String baseName) throws MissingResourceException { return getBundle(baseName, Locale.getDefault(), getLoader()); }
/** * Get a localized and/or branded file in the default locale with the default class loader. * <p>Note that use of this call is similar to using the URL protocol <code>nbresloc</code> * (which may in fact be implemented using the fuller form of the method). * <p>The extension may be null, in which case no final dot will be appended. * If it is the empty string, the resource will end in a dot. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @return URL of matching localized file * @throws MissingResourceException if not found * @deprecated Use the <code>nbresloc</code> URL protocol instead. This method does a poor * job of handling resources such as <samp>/some.dir/res.txt</samp> or * <samp>/some/res.txt.sample</samp>. */ @Deprecated public static synchronized URL getLocalizedFile(String baseName, String ext) throws MissingResourceException { return getLocalizedFile(baseName, ext, Locale.getDefault(), getLoader()); }
/** * Get a resource bundle with the default class loader. * @param baseName bundle basename * @param locale the locale to use * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static final ResourceBundle getBundle(String baseName, Locale locale) throws MissingResourceException { return getBundle(baseName, locale, getLoader()); }
/** * Get a resource bundle with the default class loader and branding. * @param baseName bundle basename * @param locale the locale to use (but still uses {@link #getBranding default branding}) * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static final ResourceBundle getBundle(String baseName, Locale locale) throws MissingResourceException { return getBundle(baseName, locale, getLoader()); }
/** Get a localized file with the default class loader. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @param locale locale of file * @return URL of matching localized file * @throws MissingResourceException if not found */ public static synchronized URL getLocalizedFile(String baseName, String ext, Locale locale) throws MissingResourceException { return getLocalizedFile(baseName, ext, locale, getLoader()); }
/** Get a localized file with the default class loader. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @param locale locale of file * @return URL of matching localized file * @throws MissingResourceException if not found */ public static synchronized URL getLocalizedFile(String baseName, String ext, Locale locale) throws MissingResourceException { return getLocalizedFile(baseName, ext, locale, getLoader()); }
/** * Get a resource bundle with the default class loader. * @param baseName bundle basename * @param locale the locale to use * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static final ResourceBundle getBundle(String baseName, Locale locale) throws MissingResourceException { return getBundle(baseName, locale, getLoader()); }
/** * Get a resource bundle with the default class loader and branding. * @param baseName bundle basename * @param locale the locale to use (but still uses {@link #getBranding default branding}) * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle(String baseName, Locale locale) throws MissingResourceException { return getBundle(baseName, locale, getLoader()); }
/** Get a localized file in the default locale with the default class loader. * <p>Note that use of this call is similar to using the URL protocol <code>nbresloc</code> * (which is in fact implemented using the fuller form of the method). * <p>The extension may be null, in which case no final dot will be appended. * If it is the empty string, the resource will end in a dot. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @return URL of matching localized file * @throws MissingResourceException if not found */ public static synchronized URL getLocalizedFile(String baseName, String ext) throws MissingResourceException { return getLocalizedFile(baseName, ext, Locale.getDefault(), getLoader()); }
/** Get a localized file in the default locale with the default class loader. * <p>Note that use of this call is similar to using the URL protocol <code>nbresloc</code> * (which is in fact implemented using the fuller form of the method). * <p>The extension may be null, in which case no final dot will be appended. * If it is the empty string, the resource will end in a dot. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @return URL of matching localized file * @throws MissingResourceException if not found */ public static synchronized URL getLocalizedFile(String baseName, String ext) throws MissingResourceException { return getLocalizedFile(baseName, ext, Locale.getDefault(), getLoader()); }
/** * Get a resource bundle with the default class loader and locale. * <strong>Caution:</strong> {@link #getBundle(Class)} is generally * safer when used from a module as this method relies on the module's * classloader to currently be part of the system classloader. The * IDE does add enabled modules to this classloader, however calls to * this variant of the method made in {@link org.openide.modules.ModuleInstall#validate}, * or made soon after a module is uninstalled (due to background threads) * could fail unexpectedly. * @param baseName bundle basename * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static final ResourceBundle getBundle(String baseName) throws MissingResourceException { return getBundle(baseName, Locale.getDefault(), getLoader()); }
/** * Get a localized and/or branded file with the default class loader. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @param locale locale of file * @return URL of matching localized file * @throws MissingResourceException if not found * @deprecated Use the <code>nbresloc</code> URL protocol instead. This method does a poor * job of handling resources such as <samp>/some.dir/res.txt</samp> or * <samp>/some/res.txt.sample</samp>. */ @Deprecated public static synchronized URL getLocalizedFile(String baseName, String ext, Locale locale) throws MissingResourceException { return getLocalizedFile(baseName, ext, locale, getLoader()); }
/** * Get a resource bundle with the default class loader and locale/branding. * <strong>Caution:</strong> {@link #getBundle(Class)} is generally * safer when used from a module as this method relies on the module's * classloader to currently be part of the system classloader. NetBeans * does add enabled modules to this classloader, however calls to * this variant of the method made in <a href="@org-openide-modules@/org/openide/modules/ModuleInstall.html#validate()">ModuleInstall.validate</a>, * or made soon after a module is uninstalled (due to background threads) * could fail unexpectedly. * @param baseName bundle basename * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static final ResourceBundle getBundle(String baseName) throws MissingResourceException { return getBundle(baseName, Locale.getDefault(), getLoader()); }
/** * Get a localized and/or branded file with the default class loader. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @param locale locale of file * @return URL of matching localized file * @throws MissingResourceException if not found * @deprecated Use the <code>nbresloc</code> URL protocol instead. This method does a poor * job of handling resources such as <samp>/some.dir/res.txt</samp> or * <samp>/some/res.txt.sample</samp>. */ @Deprecated public static synchronized URL getLocalizedFile(String baseName, String ext, Locale locale) throws MissingResourceException { return getLocalizedFile(baseName, ext, locale, getLoader()); }
/** * Get a resource bundle with the default class loader and locale. * <strong>Caution:</strong> {@link #getBundle(Class)} is generally * safer when used from a module as this method relies on the module's * classloader to currently be part of the system classloader. The * IDE does add enabled modules to this classloader, however calls to * this variant of the method made in {@link org.openide.modules.ModuleInstall#validate}, * or made soon after a module is uninstalled (due to background threads) * could fail unexpectedly. * @param baseName bundle basename * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static final ResourceBundle getBundle(String baseName) throws MissingResourceException { return getBundle(baseName, Locale.getDefault(), getLoader()); }
/** * Get a resource bundle with the default class loader and locale/branding. * <strong>Caution:</strong> {@link #getBundle(Class)} is generally * safer when used from a module as this method relies on the module's * classloader to currently be part of the system classloader. NetBeans * does add enabled modules to this classloader, however calls to * this variant of the method made in <a href="@org-openide-modules@/org/openide/modules/ModuleInstall.html#validate()">ModuleInstall.validate</a>, * or made soon after a module is uninstalled (due to background threads) * could fail unexpectedly. * @param baseName bundle basename * @return the resource bundle * @exception MissingResourceException if the bundle does not exist */ public static ResourceBundle getBundle(String baseName) throws MissingResourceException { return getBundle(baseName, Locale.getDefault(), getLoader()); }
/** * Get a localized and/or branded file in the default locale with the default class loader. * <p>Note that use of this call is similar to using the URL protocol <code>nbresloc</code> * (which may in fact be implemented using the fuller form of the method). * <p>The extension may be null, in which case no final dot will be appended. * If it is the empty string, the resource will end in a dot. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @return URL of matching localized file * @throws MissingResourceException if not found * @deprecated Use the <code>nbresloc</code> URL protocol instead. This method does a poor * job of handling resources such as <samp>/some.dir/res.txt</samp> or * <samp>/some/res.txt.sample</samp>. */ @Deprecated public static synchronized URL getLocalizedFile(String baseName, String ext) throws MissingResourceException { return getLocalizedFile(baseName, ext, Locale.getDefault(), getLoader()); }
/** * Get a localized and/or branded file in the default locale with the default class loader. * <p>Note that use of this call is similar to using the URL protocol <code>nbresloc</code> * (which may in fact be implemented using the fuller form of the method). * <p>The extension may be null, in which case no final dot will be appended. * If it is the empty string, the resource will end in a dot. * @param baseName base name of file, as dot-separated path (e.g. <code>some.dir.File</code>) * @param ext extension of file (or <code>null</code>) * @return URL of matching localized file * @throws MissingResourceException if not found * @deprecated Use the <code>nbresloc</code> URL protocol instead. This method does a poor * job of handling resources such as <samp>/some.dir/res.txt</samp> or * <samp>/some/res.txt.sample</samp>. */ @Deprecated public static synchronized URL getLocalizedFile(String baseName, String ext) throws MissingResourceException { return getLocalizedFile(baseName, ext, Locale.getDefault(), getLoader()); }