Ubuntu 14.04下ProtoBuf环境搭建及序列化示例(2)

Print(addressBook);
 }
 
 public static void main(String[] args) throws IOException {
  ProtocDemo demo=new ProtocDemo();
  demo.serialize();
  System.out.println("serialize to disk success!!");
  System.out.println("start deserialize......");
  demo.deserialize();
 }
}

右键,运行就能看到效果了!

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/14078.html