当前位置: 技术问答>java相关
在Java中,如何得到超链接的文本?
来源: 互联网 发布时间:2015-07-21
本文导语: 注意,不是URL本身,而是它的描述信息。 | URL url = new URL("http://www.ir-live.com/en/mainmenu/content.php"); HttpMessage msg = new HttpMessage(url); InputStream is = msg.sendPostMessage(); InputStreamReader isr = new Inp...
注意,不是URL本身,而是它的描述信息。
|
URL url = new URL("http://www.ir-live.com/en/mainmenu/content.php");
HttpMessage msg = new HttpMessage(url);
InputStream is = msg.sendPostMessage();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
HttpMessage msg = new HttpMessage(url);
InputStream is = msg.sendPostMessage();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);