-4

我是java编程新手。任何人都可以通过示例告诉我什么是可定制的序列化表单。序列化代理和可定制的序列化有什么区别?

4

1 回答 1

2

First, I should point out that this kind of terminology is a bit "rubbery". The meaning is liable to vary depending on the context ... and who used it.

The Serialization Proxy Pattern is nicely summarized by this Q&A: What is the Serialization Proxy Pattern?. From that, we infer that a "serialization proxy" is an object that is serialized instead of the object that you requested to be serialized. (Read the linked Q&A)

AFAIK, there is no such thing as "customizable serialization form". You probably misread it somewhere ... or were mislead by some "dodgy English". The best I can come up with is that Java serialization is customizable ... and the Serialization Proxy Pattern is one example of how you can customize it. For other examples, refer to the Java serialization docs:

于 2013-06-25T00:34:24.023 回答