zip with java

sallu's Avatar
Light Poster
hi,
i have a problem while developing a zip utility in java. we can zip a file and but not a directory(according to my knowledge)? how can i do it ? and can u refer me a resource of how zip actually works i.e. i mean to say zip algorithm.

waiting
sallu
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
I have a problem while developing a zip utility in java. we can zip a file and but not a directory(according to my knowledge)?
Thats not true

Quote:
how can i do it ?
Using Zip utility provided by Java

Quote:
and can u refer me a resource of how zip actually works i.e. i mean to say zip algorithm.
See the ZipInputStream and ZipOutputStream at http://java.sun.com/j2se/1.4.2/docs/...e-summary.html