Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes compressing/uncompressing folders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "compressing/uncompressing folders" Watch "compressing/uncompressing folders" New topic

compressing/uncompressing folders

Thomas Rochon
Ranch Hand

Joined: Jul 11, 2002
Posts: 72
Hi all !
I have a folder which contains several files and I want to compress those folder (with the files) using gzip. I wrote some lines of code which compressed and uncompressed a simple text file and it worked fine. It also compressed the folder with the files without grumbling.
But now I ask myself how to decompress that folder (and the files in it) again ?
Does it work with gzip ?
I don't have a clue ...
Thanx in advance!
- Thomas -
Phil Chuang
Ranch Hand

Joined: Feb 15, 2003
Posts: 251
Here, I already wrote a library of zip utilities using the built in zip functionality. Feel free to use it.
Thomas Rochon
Ranch Hand

Joined: Jul 11, 2002
Posts: 72
Thanx a lot Phil !
Your code works fine and does exactly what I was searching for.
Interim I took a look at some tutorials and determine that I was wrong from the outset. I was searchin for a way to solve my problem with gzip.
But now I know there apparently isn't.
Again: I'm very happy with YOUR solution and therefore I thank you very much !
Best regards,
- Thomas -
[ April 10, 2003: Message edited by: Thomas Rochon ]
I agree. Here's the link:
subject: compressing/uncompressing folders
Similar Threads
Access the entry such as entry filename in gzip file
Tomcat Instructions explained
Accept compresed requests in tomcat
Need help to save .tar files in data base
GZIP file append writing