View RSS Feed

My Java Tips

  1. Creating ZIP files

    by , 11-12-2011 at 05:49 PM (My Java Tips)
    We all use ZIP files in daily routine. They are of great use specially when we want to transfer the files over the network. In this post, I will write about how to create zip files in Java.


    Java.util.zip package provides classes to play with zip files. So first step is to import the package. We will need ZipOutputStream and ZipEntry class from this package. Import the complete package or just these classes - it depends on you. It does not have any affect on the performance.
    ...
    Categories
    Java SE