File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes closing ObjectOutputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "closing ObjectOutputStream" Watch "closing ObjectOutputStream" New topic

closing ObjectOutputStream

Mark Stein
Ranch Hand

Joined: May 20, 2002
Posts: 75
It may be because I've been staring at the screen too long, but I keep getting an compiler error telling me I haven't caught an IOException error with the following code:

Anyone see the problem?
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
It's in your finally block on the close() calls.

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I agree. Here's the link:
subject: closing ObjectOutputStream
It's not a secret anymore!