public static Properties readPropertiesQuietly ( String fileContent , Logger logger ) { Properties result = new Properties ( ) ; try { if ( fileContent != null ) { InputStream in = new ByteArrayInputStream ( fileContent . getBytes ( StandardCharsets . UTF_8 ) ) ; result . load ( in ) ; } } catch ( Exception e ) { logger . severe ( "Properties could not be read from a string." ) ; logException ( logger , e ) ; } return result ; }
Reads properties from a string .