本人之前写的一段代码:
   import java.net.*;
import java.io.*;public class Whomoni { /**
 * @param args
 */
public static void main(String[] args) {
// TODO Auto-generated method stub
check("www.123.cc");
} public static void check(String ip) {
try{
String whostr = "http://www.whois365.com/cn/domain/";
URL url = new URL(whostr+ip);

URLConnection hurl = url.openConnection();
hurl.connect();
InputStream in = hurl.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String str = "";
while((str=br.readLine())!=null) {
str = br.readLine();
System.out.println(str);
}
}catch(Exception ex){
ex.printStackTrace();
}
}
}
但是输出来的是这样:<meta http-equiv="Imagetoolbar" content="No"/>
<meta name="Description" content="鍏ㄧ悆 WHOIS 鏌ヨ 鏄竴缃戦〉鎺ュ彛鐨勫煙鍚嶅強 IP 鍦板潃 WHOIS 淇℃伅鏌ヨ宸ュ叿銆傛敮鎻? .cn .com .net .sg .tw .hk 绛? 137 涓? 鍥介檯椤剁骇鍩熷悕 (gTLD) 鍙? 鍥藉鍙婂湴鍖洪《绾у煙鍚? (ccTLD) WHOIS 鏌ヨ銆傛敮鎻? IDN銆?"/>
<meta name="Author" content="whois365.com"/><link rel="stylesheet" href="http://www.whois365.com/includes/css_global.css" type="text/css"/>
<script src="http://www.whois365.com/includes/js_global.js" type="text/javascript"></script>
</head><a name="top"></a><div id="header">
<h2><a href="http://www.whois365.com/cn" title="鍥炲埌棣栭〉">鍏ㄧ悆 WHOIS 鏌ヨ</a></h2>
<ul>
<li><a href="http://www.whois365.com/cn/listtld" title="gTLD &amp; ccTLD 鍒楄〃">gTLD &amp; ccTLD 鍒楄〃</a></li>
<li><a href="http://www.whois365.com/cn/change-lang/en" title="English">English</a></li>
</ul>
<div class="clear"></div>
<!-- header - fin --><div id="content">
<form action="http://www.whois365.com/index.php" method="post" name="searchform" id="searchform">
<label for="domain">璇疯緭鍏ヨ鏌ヨ鐨勫煙鍚嶆垨 IP 鍦板潃</label>
<input type="submit" name="submit" value="杩涜鏌ヨ"/>
</form>
<!-- content - int --><div id="ad-left">
google_ad_client = "pub-8605302497538749";
google_ad_slot = "5551939236";
google_ad_height = 600;
<script type="text/javascript"
</script>
<!-- ad - left - fin --><div id="domain-info">
<ul>
<li>缃戦〉涓绘満绉嶇被 : Oversee Webserver v1.3.18</li>
<a href="http://web.archive.org/web/*/http://www.123.cc" target="_blank" title="Archive">Archive</a>&nbsp;
<a href="http://www.baidu.com/s?ie=utf-8&wd=domain:123.cc" target="_blank" title="鏂? 鐧惧害 鎼滅储 123.cc">鐧惧害</a>&nbsp;</ul>
</div><!-- whois result - int --><div class="whois-page-ad-top">
google_ad_client = "pub-8605302497538749";
google_ad_slot = "5008108003";
google_ad_height = 15;
<script type="text/javascript"
</script>
<!-- whois page ad - top - fin -->请问下如何改善?