This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes ObjectInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "ObjectInputStream " Watch "ObjectInputStream " New topic
Author

ObjectInputStream

Chris as
Greenhorn

Joined: Mar 08, 2006
Posts: 5
Hello,
how should the input file look like?
I tried it with a XML file, but there is always the same exception!

Normal ObjectInputStream code:


Exception:



THX for help

Chris
Joni Salonen
Ranch Hand

Joined: Jan 07, 2006
Posts: 53
The input file should look like it was written by ObjectOutputStream.

Please read this tutorial:
http://java.sun.com/docs/books/tutorial/essential/io/serialization.html
Chris as
Greenhorn

Joined: Mar 08, 2006
Posts: 5
OK, THX!^^
 
Have you checked out Aspose?
 
subject: ObjectInputStream
 
jQuery in Action, 3rd edition