Package org.keycloak.theme
Class PropertiesUtil
java.lang.Object
org.keycloak.theme.PropertiesUtil
- Author:
- Hiroyuki Wada
-
Field Details
-
DETECT_ENCODING_PATTERN
-
DEFAULT_ENCODING
-
-
Constructor Details
-
PropertiesUtil
public PropertiesUtil()
-
-
Method Details
-
detectEncoding
Detect file encoding from the first line of the property file. If the first line in the file doesn't contain the comment with the encoding, it uses ISO-8859-1 as default encoding for backwards compatibility.
The specified stream is closed before this method returns.
- Parameters:
in
- The input stream- Returns:
- Encoding
- Throws:
IOException
-