File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ObjectInputStream

 
Chris as
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, THX!^^
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic