Object persistence in Java applets

前端 未结 2 1418
予麋鹿
予麋鹿 2020-12-22 05:39

What is a good approach to save state of a Java applet?

I can deal with object serialization/deserialization to/from a file but don\'t know where it should be placed

2条回答
  •  有刺的猬
    2020-12-22 06:26

    The Applet Persistence API seems to be a good approach when data needs to be persisted between browser sessions: http://docs.oracle.com/javase/1.4.2/docs/guide/plugin/developer_guide/persistence.html

提交回复
热议问题