|
|
@ -11,7 +11,7 @@ import java.nio.charset.Charset;
|
|
|
|
import javax.naming.ldap.Rdn;
|
|
|
|
import javax.naming.ldap.Rdn;
|
|
|
|
|
|
|
|
|
|
|
|
import net.sf.json.JSONObject;
|
|
|
|
import net.sf.json.JSONObject;
|
|
|
|
|
|
|
|
//读取url的工具类
|
|
|
|
public class ReadUrlUtil {
|
|
|
|
public class ReadUrlUtil {
|
|
|
|
public static JSONObject readJsonFromUrl(String urlString) throws MalformedURLException, IOException {
|
|
|
|
public static JSONObject readJsonFromUrl(String urlString) throws MalformedURLException, IOException {
|
|
|
|
InputStream iStream = new URL(urlString).openStream();
|
|
|
|
InputStream iStream = new URL(urlString).openStream();
|
|
|
|