@@ -0,0 +1,1269 @@
+package org.bird.breeze.util;%0A%0Aimport org.apache.log4j.Logger;%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.ObjectOutputStream;%0A%0A/**%0A * Created by pompey on 2017/1/15.%0A */%0Apublic class SerializeUtils %7B%0A%0A    private static Logger logger = Logger.getLogger(SerializeUtils.class);%0A%0A    public static byte%5B%5D objectToByte(Object object)%7B%0A%0A        byte%5B%5D bytes = null;%0A%0A        try%7B%0A            ByteArrayOutputStream bos = new ByteArrayOutputStream();%0A            ObjectOutputStream oos = new ObjectOutputStream(bos);%0A            oos.writeObject(object);%0A%0A            bytes = bos.toByteArray();%0A%0A            bos.close();%0A            oos.close();%0A%0A        %7Dcatch (Exception e)%7B%0A            logger.error(%22%E5%BA%8F%E5%88%97%E5%8C%96%E5%AF%B9%E8%B1%A1%E5%A4%B1%E8%B4%A5%22, e);%0A        %7D%0A        return bytes;%0A    %7D%0A%0A    public static Object byteToObject(byte%5B%5D bytes)%7B%0A%0A        Object object = null;%0A%0A        try%7B%0A%0A            ByteArrayInputStream bis = new ByteArrayInputStream(bytes);%0A            ObjectInputStream ois = new ObjectInputStream(bis);%0A%0A            object = ois.readObject();%0A%0A            bis.close();%0A            ois.close();%0A%0A        %7Dcatch (Exception e)%7B%0A            logger.error(%22%E5%8F%8D%E5%BA%8F%E5%88%97%E5%8C%96%E5%AF%B9%E8%B1%A1%E5%A4%B1%E8%B4%A5%22, e);%0A        %7D%0A%0A        return object;%0A    %7D%0A%7D%0A

add serialize util