Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- ai
- 함수
- framework
- Python
- javascript
- Deep
- Pattern
- LIST
- git
- mysql
- Linux
- db
- java
- centos
- Analysis
- Spring
- learning
- data
- 자바
- interface
- Github
- mariaDB
- 인공지능
- Security
- error
- SSH
- Web
- Server
- DeepLearning
- Numpy
Archives
- Today
- Total
목록URL (1)
PostIT
[JAVA/JSON] URL에 있는 Json Data를 가져오기 위한 메소드(JAVA)
private String jsonReadAll(Reader reader) throws IOException { StringBuilder sb = new StringBuilder(); int cp; while ((cp = reader.read()) != -1) { sb.append((char) cp); } return sb.toString(); } private JSONObject readJsonFromUrl(String url) throws IOException, JSONException { InputStream is = new URL(url).openStream(); try { BufferedReader rd = new BufferedReader(new InputStreamReader(is, Char..
Java
2016. 10. 26. 17:51