|
|
@ -347,7 +347,7 @@ public class FileUtils
|
|
|
|
* @return {@code String}
|
|
|
|
* @return {@code String}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static String readJsonFile(String Filename) {
|
|
|
|
public static String readJsonFile(String Filename) {
|
|
|
|
String jsonStr = "";
|
|
|
|
String jsonStr;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
File jsonFile = new File(Filename);
|
|
|
|
File jsonFile = new File(Filename);
|
|
|
|
FileReader fileReader = new FileReader(jsonFile);
|
|
|
|
FileReader fileReader = new FileReader(jsonFile);
|
|
|
@ -362,8 +362,7 @@ public class FileUtils
|
|
|
|
jsonStr = sb.toString();
|
|
|
|
jsonStr = sb.toString();
|
|
|
|
return jsonStr;
|
|
|
|
return jsonStr;
|
|
|
|
} catch (IOException e) {
|
|
|
|
} catch (IOException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
throw new ServiceException(e.getMessage());
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|