zipfile « Zip « Java I/O Q&A





1. Why I get an Exception on opening an empty ZIP-file with java.util.zip.ZipFile?    stackoverflow.com

I want to open a ZIP-file, that have no entries with java.util.zip.ZipFile. But on the constructor I get the following exception: 'java.util.zip.ZipException: error in opening zip file'. How can I open ...

2. ZipFile inside a ZipFile    stackoverflow.com

I have a zip file which can contain any number of zipfiles inside it (recursively also). I need to iterate over all of them. Right now, i have a function which takes ...

3. detecting binary files and character encodings in zipfiles    stackoverflow.com

When reading zipfiles (using Java ZipInputStream or any other library) from an unknown source is there any way of detecting which entries are "character data" (and if so the encoding) or ...

4. when does java.util.zip.ZipFile.close() throw IOException?    stackoverflow.com

Under what circumstances would java.util.zip.ZipFile.close() throw an IOException? Its method signature indicates that it can be thrown, but from the source code there doesn't seem to be any place ...

5. unzip a zipfile in the same hierachy using java.util.ZipFile    stackoverflow.com

given a zip file with multiple nested directory structure, how do I unzip it into the same tree structure? does ZipFile.entries() provide the enumeration in any order?

6. JVM crashes at ZipFile.getNextEntry() - part of POI's BigGridDemo    stackoverflow.com

I have a Java application to generate Excel sheets. I am doing it based on the BigGridDemo Example of Apache POI to generate Excel(xlsx). The idea is to

  1. create a template ...

7. FileNotFoundException when trying to unzip an archive with java.util.zip.ZipFile    stackoverflow.com

I have a silly problem i haven't been able to figure out. Can anyone help me? My Code is as:

String zipname = "C:/1100.zip";
    String output = "C:/1100";
   ...

8. Using java.util.zip.ZipFile    forums.oracle.com