鸠摩搜书官方正版 v1.7版本的 MD5 值为:01c9a20d2c415de3233d7f691829edf5
以下内容为反编译后的 dw.java 源代码,内容仅作参考
package net.youmi.android;
import android.content.Context;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
public final class dw implements dj {
Context f581a;
String b = null;
public dw(Context context) {
this.f581a = context;
}
private String c(String str) {
DefaultHttpClient defaultHttpClient;
Throwable th;
HttpGet httpGet;
StatusLine statusLine;
int statusCode;
HttpEntity entity;
String str2 = null;
if (str != null) {
try {
defaultHttpClient = aq.a(this.f581a, this);
try {
httpGet = new HttpGet(str);
} catch (Exception e) {
httpGet = null;
} catch (Throwable th2) {
httpGet = null;
th = th2;
}
} catch (Exception e2) {
httpGet = null;
defaultHttpClient = null;
} catch (Throwable th3) {
defaultHttpClient = null;
th = th3;
httpGet = null;
}
try {
httpGet.setHeader("Referer", "http://sdk.youmi.net/?p=3&app=" + f.a(this.f581a) + "&chn=" + f.e(this.f581a));
HttpResponse execute = defaultHttpClient.execute(httpGet);
if (execute == null || (statusLine = execute.getStatusLine()) == null || (statusCode = statusLine.getStatusCode()) < 200 || statusCode >= 300 || (entity = execute.getEntity()) == null) {
try {
httpGet.abort();
} catch (Exception e3) {
}
if (defaultHttpClient != null) {
try {
defaultHttpClient.getConnectionManager().shutdown();
} catch (Exception e4) {
}
}
} else {
str2 = EntityUtils.toString(entity, "UTF-8");
try {
httpGet.abort();
} catch (Exception e5) {
}
if (defaultHttpClient != null) {
try {
defaultHttpClient.getConnectionManager().shutdown();
} catch (Exception e6) {
}
}
}
} catch (Exception e7) {
if (httpGet != null) {
try {
httpGet.abort();
} catch (Exception e8) {
}
}
if (defaultHttpClient != null) {
try {
defaultHttpClient.getConnectionManager().shutdown();
} catch (Exception e9) {
}
}
return str2;
} catch (Throwable th4) {
th = th4;
if (httpGet != null) {
try {
httpGet.abort();
} catch (Exception e10) {
}
}
if (defaultHttpClient == null) {
throw th;
}
try {
defaultHttpClient.getConnectionManager().shutdown();
throw th;
} catch (Exception e11) {
throw th;
}
}
}
return str2;
}
@Override
public final void a(String str) {
this.b = str;
}
public final String b(String str) {
return c(str);
}
}