Home - YooYoungmo/AEP GitHub Wiki
구현 제약사항
- Java Runtime Environment 1.5.0.16 지원
- JSON-lib 2.3 사용(http://json-lib.sourceforge.net/usage.html)
참고 자료
Resource Loading
InputStream in = this.getClass().getClassLoader().getResourceAsStream("conf/app-config.json");
JSONObject from InputStream
BufferedReader bR = new BufferedReader( new InputStreamReader(in));
String line = "";
StringBuilder responseStrBuilder = new StringBuilder();
while((line = bR.readLine()) != null){
responseStrBuilder.append(line);
}
in.close();
JSONObject jsonObject = JSONObject.fromObject(responseStrBuilder.toString());