摘要:
/** * 将字符串采用编码<b>_encoding</b>转化为字节数组 * * @param _str 字符串 * @param _encoding 编码方式 * @throws ParamValidateException 如果编码方式不支持时掷出 * @return 字节数组 */public static byte[] toBytes(String _str, String _encoding) throws IllegalArgumentException{if( _str == null) {return null;}byte[] b = null;try 阅读全文
posted @ 2012-11-12 12:37 my_house_station 阅读(306) 评论(0) 推荐(0) 编辑