Show
Ignore:
Timestamp:
09/12/08 16:41:23 (4 months ago)
Author:
regtan
Message:

クラス名などを変更 getMarquee追加対応の途中

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/java/niconico4j/trunk/src/connect/HttpConnector.java

    r18086 r19224  
    3030                } 
    3131        } 
     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        } 
    3255}