我如何将一个对象序列化到文件?
它要求对象序列化,然后显示序列化数据。
It asks the object to serialize itself, and then displays the serialized data.
io包提供的对象序列化方式不是唯一的对象序列化途径。
The object serialization of the java.io package is not the only way to serialize Java objects.
对象持久性依赖于底层编程语言的对象序列化能力。
Object persistence depends on the object serialization capabilities of the underlying programming language.
RMI使用对象序列化传递参数,并且不会丢失类型,支持面向对象的多态性。
RMI uses object serialization to marshal and unmarshal parameters and does not truncate types, supporting true object-oriented polymorphism.
本简介旨在推荐几种情况,在这几种情况下,YAML提供的对象序列化格式比XML所提供的更佳。
This introduction is intended to suggest some situations where YAML provides a better object serialization format than XML.
有多方面的考虑(版本控制,瞬时对象,枚举常量时,使用对象序列化等),所以我建议做一些阅读的主题。
There are a number of considerations (versioning, transient objects, Enum constants, etc.) when using object serialization, so I would suggest you do some reading about the subject.
使用基于XSD架构定义的XML格式,将对象序列化和反序列化为消息体或从消息体序列化和反序列化对象。
Serializes and deserializes objects to or from the body of a message, using the XML format based on the XSD schema definition.
对象序列化有很多明显的缺陷,但在这种情况下,却是一个合理的持久性解决方案,原因是保存在存储库中的表单数据实例的数量是有限的。
Object serialization has its well-known flaws, but in this case, it is a reasonable persistence solution because the number of form data instances that are kept in the repository is limited.
使用XML技术的一些新的对象序列化机制被开发出来,包括SOAP、WDDX、KOALA以及其他技术所带有的对象序列化方法。
New mechanisms of object serialization with XML have been developed, including those associated with SOAP, WDDX, and KOALA, among others.
对象序列化是实现存储库持久性的一种最简单的方式,原因是datamaprepository类、所包含的数据地图以及它们的元素都是可序列化的。
Object serialization is an easy way for implementing the repository's persistence since the DataMapRepository class, the contained data maps, and their elements are serializable.
假设你有一个类并且已经将这个类的某一个对象序列化存储了,那么如果你在这个类中加入了新的成员变量,那么在反序列化刚才那个已经存在的对象的时候会怎么样?
Suppose you have a class which you serialized it and stored in persistence and later modified that class to add a new field. What will happen if you deserialize the object already serialized?
json在这种情况下将提供帮助,因为我们可以使用json_encode把任何PHP对象序列化,使该对象转换为json协议字符串,以供ajax应用程序读取。
Json helps in this case, as we can serialize any PHP object using json_encode to turn that object into a json protocol string, ready for an Ajax application to read.
然后,通过使用组件测试,可以发送业务对象,并将序列化XML作为测试数据使用。
Then, using component test, you can send a business object and take the serialized XML as the test data.
又一次,我们不得不序列化并反序列化对象,还要传送许多文本。
Again, we would have to serialize and deserialize objects, and pass a lot of text.
我们有了一个包含数组对象并且以json格式序列化的字符串。
We have a string that contains our array object, serialized in JSON format.
它将尝试检索上面所述的序列化对象。
如果应用程序运行正确,写到测试环境系统输出文件的消息包含数据对象的序列化XML内容,包括签出的附件。
If the application works correctly, the message written to the test environment system output file contains the serialized XML contents of the data object, including the checked out attachment.
当你需要存储序列化的对象时,这个问题就更加突出。
This is particularly a problem if you are storing that serialized object.
不再需要编写对象的序列化代码或者使用第三方工具才能把对象变成XML。
You don't need to write object serialization code or use third-party tools to turn your objects into XML.
目标服务器对该对象进行反序列化,并将其附加到主题。
The target server deserializes the object and attaches it to the subject.
使用这里介绍的JSON方式,就没有办法针对每个请求对对象的序列化进行裁剪,所以不需要的字段可能经常会在网络上发送。
Using the JSON approach illustrated here, there's no way to tailor objects' serialization on a per-request basis, so unneeded fields may often be sent across the network.
为使序列化能够发生,需要满足两个条件:必须为序列化器授予受支持的类型,并且待序列化的对象必须是非空的。
Two conditions need to be satisfied in order for serialization to happen: the serializer must be given a supported type and the object to be serialized must be non-null.
该方法必须返回反序列化的值对象。
但UIMA使用的是外部序列化,而不是一个序列化接口(那会让它的对象变得臃肿),这就需要在序列化数据方面做大量的工作。
But UIMA was using externalization for serializing rather than serializable interface which was making its objects bulky and lots of work was needed to serialize data.
测试定义是业务对象的序列化实例。
The Test definitions are serialised instances of a business object.
该表示可以各种格式返回:XML、JSON、php对象、php数组或序列化字符串。
This representation can be returned in a variety of formats: XML, JSON, PHP object, PHP array, or serialized string.
由每个业务对象处理数据序列化。
Serializable接口不包含任何方法。它的作用只是告诉序列化运行时这个对象是可以序列化的。
The serializable interface does not contain any methods: it exists only to tell the serialization runtime that your object is serializable.
Future对象不可序列化,这意味着,在高度可用的环境中,回调处理程序返回的句柄不能被复制。
The Future object is not serializable, which means that in a highly available environment the handle returned by the callback handler cannot be replicated.
应用推荐