posted 14 years ago
Hi,
I have a requirment, I want to write a java class which can do the tar and untar operation on a single file or on a folder (many files).
Can anyone through some light on this.
if some sample code is there please send it to me.
Thanks in advance
Regards
Ravi Prasad
------------------------------
I have a requirment, I want to write a java class which can do the tar and untar operation on a single file or on a folder (many files).
Can anyone through some light on this.
if some sample code is there please send it to me.
Thanks in advance
Regards
Ravi Prasad
------------------------------
posted 14 years ago
Ravi,
Welcome to the Ranch!
We ain't got too many rules round these parts, but we do have our naming policy, which does not allow obviously fictitious names. Names with numbers in them of course violate this rule. Please head over here and change your name to fit our policy. Thanks!
Welcome to the Ranch!
We ain't got too many rules round these parts, but we do have our naming policy, which does not allow obviously fictitious names. Names with numbers in them of course violate this rule. Please head over here and change your name to fit our policy. Thanks!
Ravi Prasad
Greenhorn
Posts: 6
posted 14 years ago
Hi,
Thank you adam. I have updated the name.
Thanks Joe Ess for your help. This web site is helpfull to me.
Thanks and Regards,
Ravi Prasad
---------------------------------
Thank you adam. I have updated the name.
Thanks Joe Ess for your help. This web site is helpfull to me.
Thanks and Regards,
Ravi Prasad
---------------------------------
jason adam
Chicken Farmer ()
Ranch Hand
Ranch Hand
Posts: 1932
posted 14 years ago
Actually, my first name is Jason, last name is Adam. It's a curse sometimes having two (actually 3, but I don't divulge my middlename
) first names.
And thank you for making the name change so quickly, we at the Ranch appreciate it!
Originally posted by Ravi Prasad:
Hi,
Thank you adam. I have updated the name.
Actually, my first name is Jason, last name is Adam. It's a curse sometimes having two (actually 3, but I don't divulge my middlename

And thank you for making the name change so quickly, we at the Ranch appreciate it!
posted 8 years ago
i m also working on a piece of code that requires to perform gunzip and untar...
i am using
java.util.zip.GZIPInputStream for gunzip
and as for untar, i will be following the approach that is using apache's API (org.apache.tools.tar)
http://www.koders.com/java/fid5AE4054C955EF855A0717C954D6B41E9BA9C0AC8.aspx
i am using
java.util.zip.GZIPInputStream for gunzip
and as for untar, i will be following the approach that is using apache's API (org.apache.tools.tar)
http://www.koders.com/java/fid5AE4054C955EF855A0717C954D6B41E9BA9C0AC8.aspx
posted 7 years ago
Thanks for the timely update to this thread. But on the Gzip input stream, I do not see gunzip function on the page. Does the Inflator object just automatically recognize the file? By internal read of the file regardless of extension, or by the user assigned extension in the name, I am wondering?

It is sorta covered in the JavaRanch Style Guide. |