ObjectInputStream and the Serializable class
I'm never used Serialization before so I thought I'd play around to increase my knowledge. I have managed to write objects out but have an issue when reading the objects back in.
All the code examples I have found only write one object out and read one object back in. How do you read in multiple objects? The OIS class doesn't seem to have any methods to determine if there are more objects to read or if you have reached EOF. Am I being dense or are you supposed to just write out the List containing all your objects instead of the individual objects themselves?