Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ObjectInputStream

 
Chris as
Greenhorn
Posts: 5
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, THX!^^
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic