@Override
public Map<String, HosakaColumn> handleResponse (final HttpResponse response) throws IOException {
checkReponseCode(response.getStatusLine());
try {
final String str = IoHelper.toString(AndroidHttpClient.getUngzippedContent(response.getEntity()));
final JSONObject o = (JSONObject) new JSONTokener(str).nextValue();
final Map<String, HosakaColumn> ret = new HashMap<String, HosakaColumn>();
final Iterator<String> keys = o.keys();
while (keys.hasNext()) {
final String key = keys.next();
ret.put(key, HosakaColumn.parseJson(o.getJSONObject(key)));
}
return ret;
}
catch (final JSONException e) {
throw new IOException(e); // FIXME
}
}
Hosaka.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:Onosendai
作者:
评论列表
文章目录