Java序列化库不需要任何参数构造函数和实现Serializable [英] Java serialization library without need of no-arg constructors and implementation of Serializable

查看:726
本文介绍了Java序列化库不需要任何参数构造函数和实现Serializable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有任何方法在java世界序列化,而不需要没有arg的构造函数和实现Serializable?

Is there is any way in java-world to serialize without need of no-arg constructors and implementation of Serializable?

推荐答案

JBoss序列化是标准java序列化的替代,它不需要您实现 java.io.Serializable 。除此之外(事实上它更快),它与标准的序列化机制相同(它甚至使用相同的 ObjectInput ObjectOutput 接口。

JBoss Serialization is a drop-in replacement for standard java serialization, which does not require you to implement java.io.Serializable. Other than that (and the fact that it's much faster), it's the same as the standard serialization mechanism (it even uses the same ObjectInput and ObjectOutput interfaces.

PS它不依赖于其他JBoss东西,它只是一个JBoss低级库分解为一个单独的项目。

P.S. It has no dependency on other JBoss stuff, it's just one of the JBoss low-level libraries broken out as a separate project.

这篇关于Java序列化库不需要任何参数构造函数和实现Serializable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆