forked from fanruan/finekit
Mars.Ma
5 years ago
8 changed files with 6 additions and 65 deletions
@ -1,4 +0,0 @@
|
||||
package com.fanruan.api.data; |
||||
|
||||
public abstract class AbstractDataModel extends com.fr.data.AbstractDataModel { |
||||
} |
@ -1,4 +0,0 @@
|
||||
package com.fanruan.api.data; |
||||
|
||||
public abstract class AbstractDatabaseConnection extends com.fr.data.impl.AbstractDatabaseConnection { |
||||
} |
@ -1,4 +0,0 @@
|
||||
package com.fanruan.api.data; |
||||
|
||||
public abstract class AbstractParameterTableData extends com.fr.data.AbstractParameterTableData { |
||||
} |
@ -1,21 +0,0 @@
|
||||
package com.fanruan.api.net.http; |
||||
|
||||
import com.fr.third.org.apache.http.HttpEntity; |
||||
import com.fr.third.org.apache.http.ParseException; |
||||
import com.fr.third.org.apache.http.util.EntityUtils; |
||||
|
||||
import java.io.IOException; |
||||
|
||||
public class EntityKit { |
||||
/** |
||||
* 利用defaultCharset字符集将HttpEntity对象转化为String对象 |
||||
* @param entity 需要转化为String的HttpEntity对象 |
||||
* @param defaultCharset 传入的字符集 |
||||
* @return HttpEntity对象转化为的String对象 |
||||
* @throws IOException |
||||
* @throws ParseException |
||||
*/ |
||||
public static String toString(HttpEntity entity, String defaultCharset) throws IOException, ParseException { |
||||
return EntityUtils.toString(entity, defaultCharset); |
||||
} |
||||
} |
@ -1,9 +0,0 @@
|
||||
package com.fanruan.api.net.http.message; |
||||
/** |
||||
* 键值对类 |
||||
*/ |
||||
public class BasicNameValuePair extends com.fr.third.org.apache.http.message.BasicNameValuePair { |
||||
public BasicNameValuePair(String name, String value) { |
||||
super(name, value); |
||||
} |
||||
} |
@ -1,15 +0,0 @@
|
||||
package com.fanruan.api.util; |
||||
|
||||
import com.fr.general.ComparatorUtils; |
||||
|
||||
public class ComparatorKit { |
||||
/** |
||||
* 比较两个Object对象是否相等 |
||||
* @param object1 第一个Object对象 |
||||
* @param object2 第二个Object对象 |
||||
* @return 相等返回True 不相等返回False |
||||
*/ |
||||
public static boolean equals(Object object1, Object object2){ |
||||
return ComparatorUtils.equals(object1, object2); |
||||
} |
||||
} |
Loading…
Reference in new issue