What happens when we open a ZipOutputStream and close it without any entrySet ?
posted 7 years ago
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 ?