contain « Zip « Java I/O Q&A





1. Recursively ZIP a directory containing any number of files and subdirectories in Java?    stackoverflow.com

Is there an easy way to recursively ZIP a directory that may or may not contain any number of files and any number of levels of subdirectories?

2. JDK contains src.zip but JRE doesn't    stackoverflow.com

Just noticed that JDK contains src.zip with a set of java files. I checked JRE and didn't found it over there. Does it mean the JVM does not need these files in ...

3. Zipping a folder which contains subfolders    stackoverflow.com

public static void main(String argv[]){
    try
         {
        String date=new java.text.SimpleDateFormat("MM-dd-yyyy").format(new java.util.Date());
   ...

4. What is the fastest way to extract 1 file from a zip file which contain a lot of file?    stackoverflow.com

I tried the java.util.zip package, it is too slow. Then I found LZMA SDK and 7z jbinding but they are also lacking something. The LZMA SDK does ...

5. Error unzipping archive created by truezip which contains files greater than 2 GB    stackoverflow.com

I was using java.util.zip to archive files until I encountered problems for large size files (> 2 GB). I tried switching to truezip. I was able to successfully archive the files ...

6. Unzipping a .zip file containing .gif files    coderanch.com

The problem I am having is that I am trying to unzip a .zip file and read the first file. This works fine when the .zip file contains text files but when it contains .gif the file extracts but when I try to view it, it cannot be read. Please Help!! Thank you david. Below is the code I have so ...

7. How to unzip a zip file which contains another zip file?    coderanch.com

I would like to unzip a zip file which contains 2 text files and another zip file inside it. For example, the zip file to unzip is called "Books.zip" and it contains 2 text files and another zip file called "Price.zip". I googled for the unzipping code commonly found on the net and used it. But the problem is that the ...

8. Problem unzipping with ZipInputStream, containing filename with Swedish characters    coderanch.com

Hi, I am having problems unzipping an archive that contains a file with a Swedish character in the filename. Here is the error message: java.lang.IllegalArgumentException at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:299) at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:238) at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:73) ...and here is the code: public static void unzip(File zipfile) throws IOException, InsiderFileParseException { BufferedOutputStream dest = null; FileInputStream fis = new FileInputStream(zipfile); ZipInputStream zin = new ZipInputStream(new BufferedInputStream(fis)); ZipEntry ...





10. Zip does not contain files    forums.oracle.com

It accepts a vector which contains files and/or folders and this is supposed to add them to a zip file. All that happens is the zip file is created but when I open it there are no files inside that are visible. The file size does appear to grow and there are no errors generated. Any ideas? Many thanks