Results 1 to 2 of 2
- 12-06-2010, 06:56 AM #1Member
- Join Date
- Nov 2010
- Rep Power
- 12-08-2010, 04:44 AM #2
gzip is usually a compression file contents. that is, a gzip on its own does not have any additional headers, so there is no storage of the file name in a plain gzip. we could figure out what the file name was before gzipping it. For example, if the file was called "myfile.sql.gz", we could probably guess the file name by dropping the .gz suffix.
Now, if the .gz file is a tar file, there is a Java Tar API that can read the tar file contents inside the gzip file, and then get the tar file names of the files stored inside the tar file.
- By cowboy2010 in forum New To JavaReplies: 9Last Post: 08-03-2010, 04:55 PM
- By koddy in forum New To JavaReplies: 6Last Post: 07-15-2010, 01:41 PM
- By Serrano0811 in forum New To JavaReplies: 1Last Post: 04-21-2010, 05:03 PM
- By aztectrev in forum Advanced JavaReplies: 4Last Post: 04-03-2010, 06:20 PM
- By Rock-On in forum New To JavaReplies: 2Last Post: 11-29-2009, 11:26 AM