您的位置:首页 > 其它

ubuntu下安装wine

2009-11-27 22:49 417 查看
public static String getUrlInfo(String url_path) {
String result = "";
URL url = null;
try {
url = new URL(url_path);
} catch (MalformedURLException e) {
} // 建立url连接,获取商品信息
InputStream in = null;
try {
in = url.openStream();
} catch (IOException e) {
System.out.println("建立连接失败");
} // 信息流
BufferedReader breader = null;
try {
breader = new BufferedReader(new InputStreamReader(in, "utf-8"));
} catch (UnsupportedEncodingException e) {
}
String info = null;
try {
info = breader.readLine();
} catch (IOException e) {
}
while (info != null) {
result += info;
try {
info = breader.readLine();
} catch (IOException e) {
}
}
return result;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: