串行化是xml解析的逆向操作。
使用串行化器将外部输出写到文件中。
清单1.此类是否可串行化?
串行化会带来一些与安全有关的问题。
默认情况下,类通常是可串行化的。
反串行化对象,并将其与原始对象相比较。
连接器必须是可串行化的。
在服务器上,解析或串行化不会引入替换字符。
Substitution characters are not introduced during parsing or serialization on the server.
这个缓存区域帮助减少串行化和多个连接点的开销。
This cache region helps to alleviate overhead with serialization and multiple connection points.
编写串行化实例的程序是临时代码,只需使用一次。
The program that writes the serialized instances is throwaway code. You won't need it more than once.
您只需将一个串行化对象写入文件——而且只需一次。
All you need to do is write a serialized object into a file, and you only do that once.
您可以使用vfs_lock串行化对vnode的访问。
串行化格式可以说是代码基础中最脆弱、健壮性最差的部分。
Serialization formats can be the most fragile and least robust parts of a code base.
在修复bug或优化类时,非常容易破坏所有已有串行化对象。
It's particularly easy to break all existing serialized objects when fixing a bug or optimizing a class.
对串行化来说,测试极其重要,因为串行化非常非常容易出错。
Serialization is especially important to test because it is very, very easy to get wrong.
通常您编写的第一个串行化测试就是用于验证串行化是否可行的测试。
The first serialization test you usually write is one that verifies serialization is possible.
然而串行化是一个涉及范围极广的问题——跨越一个系统的多个不同层。
However serialization is a wide-ranging concern that cuts across many different layers of a system.
如果您在更改代码时未考虑串行化,几乎可以肯定您必将破坏原有对象。
If you don't think about serialization while changing code, it's virtually guaranteed that you will break the legacy objects.
通常,您不能依赖默认串行化格式来保持类的不同版本间的文件格式兼容性。
You usually can't rely on the default serialization format to retain file-format compatibility between different versions of a class.
即使一个类实现了Serializable,依然不能保证它能够串行化。
Even if a class implements Serializable, there's no guarantee that it can be serialized.
这是因为从xml列读取数据需要串行化或将已解析的XML转换回文本格式。
This is because reading from the XML column requires serialization, or the conversion of parsed XML back to text format.
如果您将串行化测试作为测试套件的固定部分,则维护长期兼容性就会更轻松。
If you make serialization tests a regular part of your test suite, however, then maintaining long-term compatibility becomes relatively straightforward.
WCF支持串行化引擎,XmlSerializer也可以用于串行化参数。
WCF supports a serialization engine, the XmlSerializer, which can also be used to serialize parameters.
若您正在为任何形式的持久性存储使用串行化,那么这将是一个严重的bug。
This is a critical bug if you're using serialization for any form of persistent storage.
绝不要将敏感性信息存储到串行化的对象中,在使用存储库的API时也请牢记这一点。
Sensitive information should never be stored in an object that will be serialized, and you should also keep this in mind when you're using your repository's API.
从技术上看,串行化器并不是XSLT处理器的一部分,但它在实际使用中是必不可少的。
The serializer is not technically part of the XSLT processor, but it is essential for practical use.
这些对象像标准对象一样被填充,然后以XML 形式被串行化到服务器,进行持久化。
These objects are populated like normal objects, then serialized as XML to the server for persistence.
我认为在这一方面我们有一些工作可以探索,比如HenryStory的RDF串行化。
I think there are some aspects we can explore in this respect, for example Henry Story's RDF serialization.
类似地,对xml列进行文档检索需要串行化,即,将已解析的xml格式转换回其原始文本表示。
Similarly, document retrieval from an XML column requires serialization, that is, converting the parsed XML format back into its original textual representation.
若您关注对象串行化,特别是希望为长期持久性存储使用串行化对象时,就必须对串行化进行测试。
If you care about object serialization, and especially if you intend to use serialized objects for long-term persistent storage, you must test serialization.
应用推荐