![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具类
等不见天亮等时光i
一个工作好几年的开发
展开
-
截取从指定位置开始字符串长度按照字节
按照字节截取从指定位置截取字符串长度 代码 /** * * @param orig 原字符串 * @param count 截取位置 * @return * @throws Exception */ public static String subBytes(String orig, int count)throws Exception { byte[] gbks = orig.getBytes ("GBK"); .原创 2020-12-16 18:55:04 · 346 阅读 · 0 评论 -
Map/Url互转
/** * 将url参数转换成map */ public static Map<String, Object> getUrlParams(String param) { Map<String, Object> map = new HashMap<String, Object>(0); if (S...原创 2019-08-06 09:19:39 · 1762 阅读 · 0 评论 -
Base64加解密
//加密 public static String encode(String str) { byte[] b = null; String s = null; try { b = str.getBytes("utf-8"); } catch (UnsupportedEncodingEx...原创 2019-08-06 09:46:12 · 116 阅读 · 0 评论