dimi360
dimi360
2016-05-14 07:46

求解读这段代码是什么意思

  • java
  • android

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;
}
}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答