Class LocalizedMessage.Utf8Control

  • Enclosing class:
    LocalizedMessage

    public static class LocalizedMessage.Utf8Control
    extends java.util.ResourceBundle.Control

    Custom ResourceBundle.Control implementation which allows explicitly read the properties files as UTF-8.

    • Field Summary

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

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

      Constructors 
      Constructor Description
      Utf8Control()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.ResourceBundle newBundle​(java.lang.String baseName, java.util.Locale locale, java.lang.String format, java.lang.ClassLoader loader, boolean reload)  
      • Methods inherited from class java.util.ResourceBundle.Control

        getCandidateLocales, getControl, getFallbackLocale, getFormats, 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

      • Utf8Control

        public Utf8Control()
    • Method Detail

      • newBundle

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