File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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!^^
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ObjectInputStream
 
Similar Threads
ObjectOutputStream -- Error.
Static Block
Loading POJO object without loading library first
saving JTree
Getting a file from datahandler