B
Bulkan
Hi all,
I have this double linked list that. The nodes only have a
String as an instance variable.
What i want to be able to do is Serialize the double linked
list (the one with the methods addNode,deleteNode etc...)
and all the nodes inside the double linked list (so starting
from head traverse the entire list and write out each node
in the list), then i wont to somehow read all the nodes into
the list.
The only way to this i think is to implement the following
methods, but havent done this before, so any help/example
will be appreciated.
private void writeObject(java.ibjectOutputStream out)
throws IOException
{
}
private void readObject(java.ibjectInputStream in) throws
IOException, ClassNotFoundException
{
}
I have this double linked list that. The nodes only have a
String as an instance variable.
What i want to be able to do is Serialize the double linked
list (the one with the methods addNode,deleteNode etc...)
and all the nodes inside the double linked list (so starting
from head traverse the entire list and write out each node
in the list), then i wont to somehow read all the nodes into
the list.
The only way to this i think is to implement the following
methods, but havent done this before, so any help/example
will be appreciated.
private void writeObject(java.ibjectOutputStream out)
throws IOException
{
}
private void readObject(java.ibjectInputStream in) throws
IOException, ClassNotFoundException
{
}