Serialize a Java object to Java code?

后端 未结 5 2082
轻奢々
轻奢々 2020-12-31 14:03

Is there an implementation that will serialize a Java object as Java code? For example, if I have the object

Map m = new Map

        
5条回答
  •  北海茫月
    2020-12-31 14:45

    The pre-release of Long Term Persistence (java.beans.Encoder and friends) had both an XMLEncoder and a Java encoder. You can probably still download it somewhere.

提交回复
热议问题