public static Properties readPropertiesStream ( InputStream inputStream ) { try { final Properties prop = new Properties ( ) ; // try to read in utf 8 prop . load ( new InputStreamReader ( inputStream , Charset . forName ( "utf-8" ) ) ) ; JKCollectionUtil . fixPropertiesKeys ( prop ) ; return prop ; } catch ( IOException e ) { JKExceptionUtil . handle ( e ) ; return null ; } finally { close ( inputStream ) ; } }
Read properties stream .