Package org.keycloak.theme
Class PropertiesUtil
- java.lang.Object
- 
- org.keycloak.theme.PropertiesUtil
 
- 
 public class PropertiesUtil extends Object - Author:
- Hiroyuki Wada
 
- 
- 
Field SummaryFields Modifier and Type Field Description static CharsetDEFAULT_ENCODINGstatic PatternDETECT_ENCODING_PATTERN
 - 
Constructor SummaryConstructors Constructor Description PropertiesUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static CharsetdetectEncoding(InputStream in)Detect file encoding from the first line of the property file.
 
- 
- 
- 
Method Detail- 
detectEncodingpublic static Charset detectEncoding(InputStream in) throws IOException 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
 
 
- 
 
-