各种jar包下方法的使用

commons-codec-1.6.jar:

  DigestUtils.md5Hex(String str);

httpclient-4.2.2.jar:

  HttpClient client=new DefaultHttpClient();

  HttpGet get=new HttpGet(URL);

httpcore-4.2.2.jar:

  HttpResponse response=client.execute(get);

  EntityUtils.toString(response.getEntity());

org.json.jar:
  
   JSONObject obj=new JSONObject(String str);
  Object value=obj.get(key);
   JSONArray jsonArr=obj.getJSONArray(key);

  

你可能感兴趣的:(jar包)