Class PropertyResourceBundleControl

    • Field Summary

      • Fields inherited from class java.util.ResourceBundle.Control

        FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEncoding()
      Sets the encoding of properties file.
      java.util.List<java.lang.String> getFormats​(java.lang.String baseName)  
      java.util.ResourceBundle newBundle​(java.lang.String baseName, java.util.Locale locale, java.lang.String format, java.lang.ClassLoader classLoader, boolean reload)  
      static java.util.ResourceBundle.Control newControl​(java.lang.String encoding)
      Creates a new instance of PropertyResourceBundleControl if absent.
      • Methods inherited from class java.util.ResourceBundle.Control

        getCandidateLocales, 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
    • Constructor Detail

      • PropertyResourceBundleControl

        protected PropertyResourceBundleControl​(java.lang.String encoding)
      • PropertyResourceBundleControl

        protected PropertyResourceBundleControl()
    • Method Detail

      • newControl

        public static final java.util.ResourceBundle.Control newControl​(java.lang.String encoding)
                                                                 throws java.nio.charset.UnsupportedCharsetException
        Creates a new instance of PropertyResourceBundleControl if absent.
        Parameters:
        encoding - Encoding
        Returns:
        Control
        Throws:
        java.nio.charset.UnsupportedCharsetException - If encoding is not supported
        Since:
        1.0.0
      • getFormats

        public final java.util.List<java.lang.String> getFormats​(java.lang.String baseName)
        Overrides:
        getFormats in class java.util.ResourceBundle.Control
      • newBundle

        public java.util.ResourceBundle newBundle​(java.lang.String baseName,
                                                  java.util.Locale locale,
                                                  java.lang.String format,
                                                  java.lang.ClassLoader classLoader,
                                                  boolean reload)
                                           throws java.lang.IllegalAccessException,
                                                  java.lang.InstantiationException,
                                                  java.io.IOException
        Overrides:
        newBundle in class java.util.ResourceBundle.Control
        Throws:
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.io.IOException
      • getEncoding

        public java.lang.String getEncoding()
        Sets the encoding of properties file.
        Returns:
        the encoding
        Since:
        1.0.0