Solved

How to open .tar file in Java.

Posted on 2004-10-08
14
536 Views
Last Modified: 2008-02-01

 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.
0
Comment
Question by:ilaiyaraja
  • 9
  • 2
14 Comments
 
LVL 12

Accepted Solution

by:
Giant2 earned 500 total points
ID: 12257281
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257289
the guideline are like GZIP. Here is an example:
http://www.javaalmanac.com/egs/java.util.zip/UncompressFile.html?l=rel
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257293
0
 
LVL 3

Expert Comment

by:RuadRauFlessa
ID: 12257354
Isn't it possible to open a tar file with a zip utility?
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257377
>Isn't it possible to open a tar file with a zip utility?
No. Tar is different from zip.
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257406
RuadRauFlessa,
See here for the definition of what is TAR file
http://www.fact-index.com/t/ta/tar_file_format.html
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 12

Expert Comment

by:Giant2
ID: 12257444
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
 
LVL 12

Expert Comment

by:Giant2
ID: 12257477
the classes are in the file ant.jar of the common lib

Do you need other input?
0
 

Author Comment

by:ilaiyaraja
ID: 12257558
Hello Friends ,
 Thanks for your great response. i got the exact answer. Thanks for you all..
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257595
>i got the exact answer
So you can close this thread.
0
 
LVL 3

Expert Comment

by:RuadRauFlessa
ID: 12257659
Thanks for that Giant2
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12259239
ilaiyaraja,
Do you solved?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
commonTwo  challenge 63 98
@SBGen Method 3 25
JDeveloper 12c for 32 bit 4 34
eclipse java  build path 6 20
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now