Externalizable « serialize « Java I/O Q&A





1. What is the difference between Serializable and Externalizable in Java?    stackoverflow.com

What is the difference between Serializable and Externalizable in Java?

2. Generate Java Externalizable readExternal() / writeExternal() blocks automatically    stackoverflow.com

I am working on a project where Java's native serialization is slow, so we want to move to implementing Externalize interface on the classes for superior performance. However, these classes have ...

3. When to use Externalizable instead of writeReplace+readResolve?    stackoverflow.com

In a couple of places I'm using writeReplace and readResolve, which sometimes gets quite verbose. I wonder if using Externalizable could be better (actually, I don't think so, because my objects ...

4. Externalizable or Serializable?    stackoverflow.com

After going through the article at http://geekexplains.blogspot.com/2008/06/diff-between-externalizable-and.html, i got to know Externalizable is better than Serializalable as it provides better control on code and also faster .So ...

5. How to override Externalizable to Serializable?    stackoverflow.com

Hi I have classes that extend some given interfaces which I can't change. And those interfaces implement Externalizable. But I want to serialize my objects using regular Java serialization. Basically I ...

6. Externalizable Vrs Serializable    coderanch.com

9. Serializable vs Externalizable    coderanch.com

Neither audience nor the question is dumb.. some times it also means that ppl. are busy Let me try to explain ..as far as I know. To be frank, If you can understand the API doc of externalizable from JDK documentation, you are not a normal person . Coming to the answer, You must have noticed that Externalizable extends Serializable. Hence ...





11. Serialization - Seriallizable Vs Externalizable    coderanch.com

Probably Serializable will work best for you. Externalizable is a subinterface of Serializable, which gives you more control over how your objects are serialized and de-serialized ... though at the expense of having to write a lot more code yourself. The volatile keyword doesn't affect serialization in any way. Member variables marked transient are not serialized from normal Serializable classes, but ...

12. Serializable Vs Externalizable    coderanch.com

13. serializable or externalizable    forums.oracle.com

In Serializable object, the object is constructed entirely from its stored bits, with no constructor calls. With an Externalizable object, all the normal default construction behavior occurs (including the initializations at the point of field definition), and then readExternal( ) is called. You need to be aware of this?in particular, the fact that all the default construction always takes place?to produce ...

14. The difference between Serializable and Externalizable    forums.oracle.com

I have read the doc. on both interfaces but I don't know exactly the difference between Serializable and Externalizable. I know that using Serializable you don't have to take care of the serialization yourself but in Externalizable you have to. But if you implement the read/writeObject in Serializable then isn't that the same thing as to implement Externalizable and read/writeExternal? Also, ...

15. Serializable vs Externalizable.    forums.oracle.com

I really couldn't understand the advantage or difference in using Externalizable instead of serializabe. I read a lot of articles about them and all of them states two main differences 1. syntax 2. Externalizable provide more control in serialization and more efficient performance wise. But we can control serialization using readObject () and writeObject() methods itself. What are the additional capabilities ...

16. Externalizable stores more data than Serializable ?    forums.oracle.com

To my knowledge externalizable dosent really do anything to reduse the space taken. It only gives you more controll of the process. Also when writing a externzlised objects in to stream it will write class discriptors of both Serializable and Externalizable to stream. when writing Serialisable only Serialisable class discriptor is written this will cause additional data. If you want smaller ...





17. Not clear on diff between the Serializable and Externalizable interfaces    forums.oracle.com

I am really not understood the diff between Searialization and Externalization.. Can you briefly explain what it is? we can implement either of these interfaces for the purpose of Serialization and Persistence. If not we can use ObjectOutput Stream and Object Input Stream for serializing the objects.. ..anyway please give me some inputs on this.... Thanks Ram