| | 32 | |
| | 33 | public InputStream getMarqueeInfo(String videoId)throws IOException{ |
| | 34 | try{ |
| | 35 | //URL |
| | 36 | StringBuilder urlStrBuilder = |
| | 37 | new StringBuilder("http://www.nicovideo.jp/api/getmarquee?").append(videoId); |
| | 38 | String urlStr = urlStrBuilder.toString(); |
| | 39 | URL url = new URL(urlStr); |
| | 40 | |
| | 41 | HttpURLConnection http = (HttpURLConnection)url.openConnection(); |
| | 42 | |
| | 43 | // GET�Ōq�� |
| | 44 | http.setRequestMethod("GET"); |
| | 45 | |
| | 46 | // �ڑ� |
| | 47 | http.connect(); |
| | 48 | |
| | 49 | return http.getInputStream(); |
| | 50 | |
| | 51 | }catch( IOException e ){ |
| | 52 | throw e; |
| | 53 | } |
| | 54 | } |