code: public static boolean saveObjectTo(Object o, String path)
      {
          try
          {
              ObjectOutputStream oos = new ObjectOutputStream(IOUtil.newOutputStream(path));
              oos.writeObject(o);
              oos.close();
          }
          catch (IOException e)
          {
              logger.warning("在保存对象" + o + "到" + path + "时发生异常" + e);
              return false;
          }
  
          return true;
      }
docs: 序列化对象
  
  @param o
  @param path
  @return