Which serialization format does Java use?
Asked Answered
K

1

9

In an RMI program, I want to implement the Serializable interface to serialize objects received from a server. Does Java 6 use a built-in serialization format? I wanted to know if there is a specific name for the serialization format.

Kilowatthour answered 9/7, 2011 at 23:4 Comment(0)
D
10

Yes, Java has its own binary serialization format. And I don't think it has a name other than Java serialization [format | protocol].

Discomposure answered 9/7, 2011 at 23:13 Comment(2)
Not only does it lack a real name, it lacks a real specification. I implemented a deserializer against that spec once, and frequently found myself stuck an an ambiguity or omission in that spec. Ultimately, the specification that mattered was the output of Sun's implementation of serialization!Coriss
Its name is Object Serialization and it has a Specification named accordingly. Agree that it is incomplete, especially a couple of RMI-related aspects.Zoubek

© 2022 - 2024 — McMap. All rights reserved.