各种格式的编码解码工具类.
集成Commons-Codec,Commons-Lang及JDK提供的编解码方法
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.lang.StringEscapeUtils;
/**
* 各种格式的编码加码工具类.
*
* 集成Commons-Codec,Commons-Lang及JDK提供的编解码方法.
*
*
*/
public class EncodeUtils {
private static final String DEFAULT_URL_ENCODING = "UTF-8";
/**
* Hex编码.
*/
/*public static String hexEncode(byte[] input) {
return Hex.encodeHexString(input);
}*/
/**
* Hex解码.
*/
public static byte[] hexDecode(String input) {
try
最后
以上就是幽默铅笔最近收集整理的关于hexutil加解密_EncodeUtil(各种格式的编码解码工具类)的全部内容,更多相关hexutil加解密_EncodeUtil(各种格式内容请搜索靠谱客的其他文章。
发表评论 取消回复