• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
mahavir swami
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic