是否有任何库可通过python反序列化,而python已用Java序列化 [英] Is there any library to deserialize with python which is serialized with java

查看:64
本文介绍了是否有任何库可通过python反序列化,而python已用Java序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在要用Java序列化的python反序列化的库?

Is there any library to deserialize with python which is serialized with java?

推荐答案

Java序列化是类/数据结构的表示,并与虚拟机紧密相关.因此,要转换到Python世界将很困难.

Java serialisation is a representation of the class/data structures and tightly tied to the virtual machine. Consequently that's going to be difficult to translate to the Python world.

  1. 您的Java程序可以XML进行序列化/反序列化,这是可以翻译的.查看 JAXB Jython (Java中的Python实现)中运行的可能性
  1. Your Java program can serialise/deserialise in XML, which would be translatable. Check out JAXB or XStream
  2. Have you looked at the possibility of running in Jython - the Python implementation in Java

这篇关于是否有任何库可通过python反序列化,而python已用Java序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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