日期:2014-05-20 浏览次数:20938 次
        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("1", new Date());
        ByteArrayOutputStream bo = new ByteArrayOutputStream();
        ObjectOutputStream oo = new ObjectOutputStream(bo);
        oo.writeObject(map);
        ByteArrayInputStream bi = new ByteArrayInputStream(bo.toByteArray());
        ObjectInputStream oi = new ObjectInputStream(bi);
        Object obj = oi.readObject();
                //这个地方设置断点,发现obj的table不为空。。
        System.out.println(obj);