public static String conSvr() {
(URL)null;
(InputStream)null;
StringBuilder stringBuilder = new StringBuilder();
StringBuilder stringBuilder2 = new StringBuilder();
stringBuilder.append("ben123.a3w.cn");
try {
StringBuffer stringBuffer = new StringBuffer();
StringBuffer stringBuffer2 = new StringBuffer();
StringBuffer stringBuffer3 = new StringBuffer();
URL uRL = new URL(stringBuffer.append(stringBuffer2.append(stringBuffer3.append("http://").append(stringBuilder.toString()).toString()).append("/").toString()).append(stringBuilder2.toString()).toString());
HttpURLConnection httpURLConnection = (HttpURLConnection)uRL.openConnection();
httpURLConnection.addRequestProperty("Host", stringBuilder.toString());
if (httpURLConnection.getResponseCode() != 200) return null;
InputStream inputStream = httpURLConnection.getInputStream();
InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader((Reader)inputStreamReader);
StringBuilder stringBuilder3 = new StringBuilder();
(String)null;
do {
String string2;
if ((string2 = bufferedReader.readLine()) == null) {
return stringBuilder3.toString();
}
StringBuffer stringBuffer4 = new StringBuffer();
stringBuilder3.append(stringBuffer4.append(string2).append("\n").toString());
} while (true);
}
catch (IOException var9_13) {
return null;
}
}
求解读这段代码是什么意思
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答 默认 最新
悬赏问题
- ¥100 如何对超大数据分段并进行对比处理
- ¥50 mmc在一个管理单元检测到错误
- ¥15 如何正确使用pyside6,使其符合LGPL?
- ¥15 百度网盘app文件浏览效果怎么做?
- ¥15 关于#python#的问题,请各位专家解答!
- ¥100 如何快速统计出一亿行由0和1组成的数字里面的1连续出现几次及标记后出现的次数?
- ¥15 include 头文件引用出错问题
- ¥15 MATLAB并行池出问题
- ¥15 本地运行成功上传到洛谷上却WA?
- ¥15 断网的时候检测socket连接状态