How to open .tar file in Java.


 Hi friends, i have to open ".tar" file  in java.  but i dont know how. so can you please give any idea about  opening ".tar" file in java....

 thank you friends.
ilaiyarajaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Giant2Commented:
the guideline are like GZIP. Here is an example:
http://www.javaalmanac.com/egs/java.util.zip/UncompressFile.html?l=rel
0
 
Giant2Commented:
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
RuadRauFlessaCommented:
Isn't it possible to open a tar file with a zip utility?
0
 
Giant2Commented:
>Isn't it possible to open a tar file with a zip utility?
No. Tar is different from zip.
0
 
Giant2Commented:
RuadRauFlessa,
See here for the definition of what is TAR file
http://www.fact-index.com/t/ta/tar_file_format.html
0
 
Giant2Commented:
ilaiyaraja,
do you need more help about jakarta compress?
Surfing on
http://jakarta.apache.org/commons/sandbox/compress/
you can find even example. You can find it is similar to the Zip/Jar in JDK (the example I post before).
Instead of, for example:
ZipEntry
you must use:
TarEntry
...
0
 
Giant2Commented:
the classes are in the file ant.jar of the common lib

Do you need other input?
0
 
ilaiyarajaAuthor Commented:
Hello Friends ,
 Thanks for your great response. i got the exact answer. Thanks for you all..
0
 
Giant2Commented:
>i got the exact answer
So you can close this thread.
0
 
RuadRauFlessaCommented:
Thanks for that Giant2
0
 
Giant2Commented:
ilaiyaraja,
Do you solved?
0
All Courses

From novice to tech pro — start learning today.