graph « serialize « Java I/O Q&A





1. What are the advantages and disadvantes of yaml vs xml for Object graph de/serialization?    stackoverflow.com

The use case is long term serialization of complex object graphs in a textual format.

2. efficient java object graph serialization    stackoverflow.com

What is the best approach for serializing java object graphs? My requirements for serialization library are 1) speed of deserialization 2) size - as small as possible (smaller than in java default serialization) 3) flexibility ...

3. Is there ANY way to save a graph object containing nodes and edges?    stackoverflow.com

I've tried using the standard serializing type things, stuff like:

 FileOutputStream f_out;
try {
 f_out = new FileOutputStream("MAOS.data");
  ObjectOutputStream  obj_out = new ObjectOutputStream (f_out);   
  obj_out.writeObject(s);
  ...

4. Serializing a part of object graph    stackoverflow.com

I have a problem regarding Java custom serialization. I have a graph of objects and want to configure where to stop when I serialize a root object from client to server. Let's ...

5. How do I serialise a graph in Java without getting StackOverflowException?    stackoverflow.com

I have a graph structure in java, ("graph" as in "edges and nodes") and I'm attempting to serialise it. However, I get "StackOverflowException", despite significantly increasing the JVM stack size. ...

6. Deep graph results in stack overflow: non-recursive serialization options?    stackoverflow.com

We're getting StackOverflowErrors from Java's serialization library. The problem is that the default serialization implementation is recursive, the depth of which is bounded only by the longest path through a ...

7. Object reference graphs containing cycles can be serialized??    coderanch.com

Hi all... I'm still new to Serialization and have read someplace that "Object reference graphs containing cycles can be serialized". However my Serialization attempts throw a StackOverflowError for which Stuart and David asked me to check if the objects refer recursively to one another. I don't get this part... is it absolutely necessary to be aware of the object graph? I've ...

8. Serializing an Object Graph only using Custom Serialization(Externalizable)    coderanch.com

I have to Serialize an Object Graph using Custom Serialization implementing the Externalizable Interface.Here Object graph refers to a Collection Object whose elements are objects which implement the Externalizable Interface and these Objects have other collection objects which inturn have the objects which implement Externalizable and the tree goes on... Is there any way we can Serialize the Object Graph and ...

9. XMLEncoder not serializing the whole graph!    coderanch.com

I have this class which is a composite of other classes. One of the composite, Role is itself a composite of class, Recipient. But the XMLEncoder stops at Role and doesn't go any further. All classes are serializable. I am using XMLEncoder in a "regular" way and printing to a file. Should I be doing anything special to output the complete ...