Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing/Reading multiple objects of same class using Serialization?

 
Gagan Grover
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to write and read multiple objects using serialization? The code that I am using to serialize and deserialize is listed below. During the deserialization process ois.isAvailable!=0 is giving false. Can multiple objects be serialized and deserialized in this way?
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
We ask that you SearchFirst. Your problem with available is because AvailableDoesntDoWhatYouThinkItDoes. If you want to store multiple instances using serialization, you have a few options. See this post.
 
Gagan Grover
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,

Thanks for your help. I will take care of it next time before posting something.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic