- Timestamp:
- 09/12/08 16:41:23 (2 months ago)
- Location:
- lang/java/niconico4j/trunk
- Files:
-
- 2 modified
- 1 moved
-
src/analyzer/GetFlvXmlPather.java (moved) (moved from lang/java/niconico4j/trunk/src/analyzer/XmlPather.java) (1 diff)
-
src/connect/HttpConnector.java (modified) (1 diff)
-
test/test/Test.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/java/niconico4j/trunk/src/analyzer/GetFlvXmlPather.java
r18086 r19224 19 19 import exception.NiconicoException; 20 20 21 public class XmlPather {22 public ThumbInfoBean analyzer(InputStream is) throws NiconicoException,21 public class GetFlvXmlPather { 22 public ThumbInfoBean getFlv(InputStream is) throws NiconicoException, 23 23 SAXException, 24 24 IOException -
lang/java/niconico4j/trunk/src/connect/HttpConnector.java
r18086 r19224 30 30 } 31 31 } 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 } 32 55 } -
lang/java/niconico4j/trunk/test/test/Test.java
r18086 r19224 7 7 import bean.ThumbInfoBean; 8 8 9 import analyzer. XmlPather;9 import analyzer.GetFlvXmlPather; 10 10 11 11 import connect.HttpConnector; … … 21 21 InputStream is = connector.getVideoInfo(args[0]); 22 22 23 XmlPather parther = newXmlPather();24 ThumbInfoBean thumbInfo = parther. analyzer(is);23 GetFlvXmlPather parther = new GetFlvXmlPather(); 24 ThumbInfoBean thumbInfo = parther.getFlv(is); 25 25 26 26 //���X�|���X�X�e�[�^�X
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)