串行化是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.
在大多数情况下,最好是让DB 2执行隐式的串行化。
In most cases it is best to let DB2 perform implicit serialization.
您可以使用vfs_lock串行化对vnode的访问。
串行化格式可以说是代码基础中最脆弱、健壮性最差的部分。
Serialization formats can be the most fragile and least robust parts of a code base.
串行化,并且在基于MOF的仓库中保持XMI企业架构模型。
To serialize and persist in XMI enterprise architecture models in the MOF-based repository.
几乎所有更改都会涉及对串行化有某种影响的一个类的实例字段。
Almost any change you make that involves a class's instance fields has some impact on serialization.
在修复bug或优化类时,非常容易破坏所有已有串行化对象。
It's particularly easy to break all existing serialized objects when fixing a bug or optimizing a class.
当应用程序向数据库请求数据时,会通过数据库连接串行化其结果。
When an application requests data from a database, the result is serialized through a database connection.
通常您编写的第一个串行化测试就是用于验证串行化是否可行的测试。
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.
对串行化来说,测试极其重要,因为串行化非常非常容易出错。
Serialization is especially important to test because it is very, very easy to get wrong.
可以在开发过程的早期执行一些简单的挂起测试,以避免出现串行化问题。
A few simple passivation tests can be executed early on in the development process to avoid serialization problems.
请注意:这要求更注意串行化问题,因为完成挂起后存储库会话会被恢复。
Notice that this requires that they be more aware of serialization issues, because the repository session must be restored after passivation.
通常,您不能依赖默认串行化格式来保持类的不同版本间的文件格式兼容性。
You usually can't rely on the default serialization format to retain file-format compatibility between different versions of a class.
在转换过程中,正如XML文件已经被反向工程化一样,SA模型被串行化。
In the transformation process, SA models serialized as proprietary XML files have been reversed engineered.
即使一个类实现了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.
应用推荐