wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes What happens when we open a ZipOutputStream and close it without any entrySet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "What happens when we open a ZipOutputStream and close it without any entrySet ?" Watch "What happens when we open a ZipOutputStream and close it without any entrySet ?" New topic
Author

What happens when we open a ZipOutputStream and close it without any entrySet ?

mahavir swami
Greenhorn

Joined: Sep 18, 2009
Posts: 13


here i have just created a ZipOutputStream and then closed it without writing any file , and then while closing it
i get an exception saying zipfile must have atleast one entry.
now why is it like this?
and if file does not get closed then what happens to the outputstream reference ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What happens when we open a ZipOutputStream and close it without any entrySet ?
 
Similar Threads
Zip Directory Recursively
how to zip multiple files and directory into one output
Strange problem while creating zip file
Windows does not recognize Java created ZIP
can you help me?