加载配置文件失败时不执行后续配置项读取和解析

dev
veryben 2017-05-19 10:21:31 +08:00
parent 75931a8053
commit d0c43600d7
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class IniFileReader {
/**
* @param conf_filename config filename
*/
public IniFileReader(String conf_filename) throws FileNotFoundException, IOException {
public IniFileReader(String conf_filename) throws IOException {
this.conf_filename = conf_filename;
loadFromFile(conf_filename);
}
@ -155,6 +155,7 @@ public class IniFileReader {
private void readToParamTable(InputStream in) throws IOException {
this.paramTable = new Hashtable();
if (in == null) return;
String line;
String[] parts;
String name;