Class Utf8ResourceBundle


  • public class Utf8ResourceBundle
    extends java.util.ResourceBundle
    A wrapper around a ResourceBundle that converts strings to UTF-8. This is required to handle property-files with UTF-8 encoding because Java reads property-files in ISO-8859-1.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.ResourceBundle

        java.util.ResourceBundle.Control
    • Field Summary

      • Fields inherited from class java.util.ResourceBundle

        parent
    • Constructor Summary

      Constructors 
      Constructor Description
      Utf8ResourceBundle​(java.util.PropertyResourceBundle resourceBundle)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Enumeration<java.lang.String> getKeys()
      protected java.lang.Object handleGetObject​(java.lang.String key)
      • Methods inherited from class java.util.ResourceBundle

        clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utf8ResourceBundle

        public Utf8ResourceBundle​(java.util.PropertyResourceBundle resourceBundle)
        Constructor.
        Parameters:
        resourceBundle - the property resource bundle constructed by ResourceBundle.getBundle...
    • Method Detail

      • handleGetObject

        protected java.lang.Object handleGetObject​(java.lang.String key)
        Specified by:
        handleGetObject in class java.util.ResourceBundle
        See Also:
        ResourceBundle.handleGetObject(java.lang.String)
      • getKeys

        public java.util.Enumeration<java.lang.String> getKeys()
        Specified by:
        getKeys in class java.util.ResourceBundle
        See Also:
        ResourceBundle.getKeys()