private static void loadProperties ( Properties properties , InputStream inputStream , boolean internal ) { try { properties . load ( inputStream ) ; LibraryConfigurationLoader . closeResource ( inputStream ) ; } catch ( Exception exception ) { LibraryConfigurationLoader . closeResource ( inputStream ) ; String prefix = "External" ; if ( internal ) { prefix = "Internal" ; } throw new FaxException ( prefix + " " + LibraryConfigurationLoader . CONFIGURATION_FILE_NAME + " not found." , exception ) ; } }
This function loads the properties from the input stream to the provided properties object .