摘要: /*** 对象转Byte数组** @param obj* @return* @throws Exception*/public static byte[] objectToBytes(Object obj) throws Exception {logger.debug("objectToString called ");ByteArrayOutputStream out = new ByteArrayOutputStream();ObjectOutputStream sOut = new ObjectOutputStream(out);sOut.writeObject(ob 阅读全文
posted @ 2012-11-25 16:17 张兰云 阅读(899) 评论(0) 推荐(0) 编辑