该工具类用于解析网址中的Json数据
package org.mobiletrain.robot.http;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Date;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.mobiletrain.robot.bean.ChatMessage;
import org.mobiletrain.robot.bean.ChatMessage.Type;
import org.mobiletrain.robot.bean.Result;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import android.