Sky View Café - Java

org.shetline.util
Class PropertiesControl

java.lang.Object
  extended by java.util.ResourceBundle.Control
      extended by org.shetline.util.PropertiesControl

public class PropertiesControl
extends ResourceBundle.Control


Nested Class Summary
static class PropertiesControl.LocaleMode
           
 
Field Summary
protected  String encoding
           
protected  PropertiesControl.LocaleMode localeMode
           
protected  Locale rootLocale
           
 
Fields inherited from class java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
 
Constructor Summary
PropertiesControl()
           
PropertiesControl(PropertiesControl.LocaleMode localeMode, Locale rootLocale)
           
PropertiesControl(String encoding)
           
PropertiesControl(String encoding, Locale rootLocale)
           
PropertiesControl(String encoding, PropertiesControl.LocaleMode localeMode)
           
PropertiesControl(String encoding, PropertiesControl.LocaleMode localeMode, Locale rootLocale)
           
 
Method Summary
 List<Locale> getCandidateLocales(String baseName, Locale locale)
           
 List<String> getFormats(String baseName)
           
 ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)
           
 
Methods inherited from class java.util.ResourceBundle.Control
getControl, getFallbackLocale, getNoFallbackControl, getTimeToLive, needsReload, toBundleName, toResourceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encoding

protected String encoding

localeMode

protected PropertiesControl.LocaleMode localeMode

rootLocale

protected Locale rootLocale
Constructor Detail

PropertiesControl

public PropertiesControl()

PropertiesControl

public PropertiesControl(String encoding)

PropertiesControl

public PropertiesControl(String encoding,
                         Locale rootLocale)

PropertiesControl

public PropertiesControl(String encoding,
                         PropertiesControl.LocaleMode localeMode)

PropertiesControl

public PropertiesControl(PropertiesControl.LocaleMode localeMode,
                         Locale rootLocale)

PropertiesControl

public PropertiesControl(String encoding,
                         PropertiesControl.LocaleMode localeMode,
                         Locale rootLocale)
Method Detail

getFormats

public List<String> getFormats(String baseName)
Overrides:
getFormats in class ResourceBundle.Control

getCandidateLocales

public List<Locale> getCandidateLocales(String baseName,
                                        Locale locale)
Overrides:
getCandidateLocales in class ResourceBundle.Control

newBundle

public ResourceBundle newBundle(String baseName,
                                Locale locale,
                                String format,
                                ClassLoader loader,
                                boolean reload)
                         throws IllegalAccessException,
                                InstantiationException,
                                IOException
Overrides:
newBundle in class ResourceBundle.Control
Throws:
IllegalAccessException
InstantiationException
IOException

Sky View Café - Java