开发者

Consuming a web page through my blackberry app

开发者 https://www.devze.com 2023-03-19 13:43 出处:网络
I want to open a web page and then take certain contents from开发者_开发知识库 this page onto some array elements and then work on it . I am able to open the page in a new browser but how do i read it

I want to open a web page and then take certain contents from开发者_开发知识库 this page onto some array elements and then work on it . I am able to open the page in a new browser but how do i read it . Does it have any inputbuffer's or something like in android . plss i need help ... just migrated from android .


Try this code to open InputStream instance:

String someAddress = "http://www.myserver.com/mypage.html";  
HttpConnection httpConnection = (HttpConnection) Connector.open(someAddress);
InputStream inputStream = httpConnection.openInputStream();

After that use built InputStream instance to process contents of received web-page.

0

精彩评论

暂无评论...
验证码 换一张
取 消