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;
}
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;
}
相关文章推荐
- ubuntu下通过wine安装source insight
- ubuntu16.04下安装wine及TIM
- wine on ubuntu linux, and source insight 绿色版的安装
- 【总结】 ubuntu 12.04安装wine 1.7.4
- [转]ubuntu10.10升级到11.04过程中python2.7升级出错的解决方法(安装wine过程中出错)
- Ubuntu安装wine时停止在"正在设定ttf-mscorefonts-installer"解决方法
- Ubuntu 下运行 Windows程序——Wine的安装配置
- ubuntu10.04 wine1.3 安装 IE6、QQ和迅雷
- qq2010?Ubuntu实用-wine下安装QQ2010
- Ubuntu 下使用 wine 安装 RTX
- ubuntu下使用wine安装office2007
- ubuntu下wine安装软件时乱码问题解决
- ubuntu下安装wine 以及windows exe
- Ubuntu qq2009 wine 安装
- ubuntu16.04安装最新版本的wine
- ubuntu安装wine-qq2012的方法
- Ubuntu14.04_64位 下安装 wine,playonlinux
- ubuntu 用wine卸载wine安装的应用
- 解决ubuntu 14.404下安装wine依赖包的问题
- ubuntu 10.04 下安装 wine 所得所获【转】