zip with java

Light Poster
11Jan2005,19:19   #1
sallu's Avatar
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
Go4Expert Founder
12Jan2005,09:56   #2
shabbir's Avatar
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