蓝色天空

走在IT的路上,随时需要抬头看看天空
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月12日

摘要: /** * 将字符串采用编码<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) 编辑