Package org.keycloak.theme
Class PropertiesUtil
java.lang.Object
org.keycloak.theme.PropertiesUtil
- Author:
- Hiroyuki Wada
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
readCharsetAware
(Properties properties, InputStream stream) Read a properties file either UTF-8 or if that doesn't work in ISO-8895-1 format.
-
Constructor Details
-
PropertiesUtil
public PropertiesUtil()
-
-
Method Details
-
readCharsetAware
Read a properties file either UTF-8 or if that doesn't work in ISO-8895-1 format. This utilizes the functionality present in JDK 9 to automatically detect the encoding of the resource. A user can specify the standard Java system propertyjava.util.PropertyResourceBundle.encoding
to change this. Unfortunately the standardProperties.load(Reader)
doesn't support this automatic decoding, as it is only been implemented for resource files.- Throws:
IOException
- See Also:
-