Tag Archive: Java Serialization

Aug
05

Java JSON Libraries for Serialization & Deserialization of Java Objects

Convert Java Object to XML and Convert XML to Java Object If you task is to do serialization by converting Java Objects  to XML, and XML to Java Objects then you really need a library to serialize objects to XML and back again. Because doing these things manually can really panic and may tons of …

Continue reading »

Permanent link to this article: http://www.javaplex.com/blog/java-json-libraries-for-serialization-deserialization-of-java-objects/

Jul
12

Inside Implementing & Customizing Serialization in Java

Java NotSerializableException Exception

Implementing serialization in Java is pretty straight forward just a little step task. The class you want to be serialized just have to implements a marker Interface Serializable no override nothing extra work. The JVM will take care of serialization and deserialization process automatically. Now you can write your object to any persistent technology e.g. …

Continue reading »

Permanent link to this article: http://www.javaplex.com/blog/inside-implementing-customizing-serialization-in-java/

Aug
04

Java Object Serialization by using Java I/O Streams

The task is to store different objects of classes in a physically located file on hard disk. For this to store objects and their states (including the values of their data members) we have to make those classes serializeable. Use Standard Java I/O streams FileOutputStream, ObjectOutputStream to write/store to file and FileInputStream, ObjectInputStream streams to …

Continue reading »

Permanent link to this article: http://www.javaplex.com/blog/java-object-serialization-by-using-java-io-streams/