cancel
Showing results for 
Search instead for 
Did you mean: 

TAR via java

Shabarish_Nair
Active Contributor
0 Kudos

Hi All,

I have a requirement to create an EJB module to TAR a given inputstream.

I have the payload(s) and the file names(s) that needs to be added.

ex.

<payload>
xxxxx
</payload>
<filename>
xxxx.txt
</filename>
<payload>
yyyy
</payload>
<filename>
yyyy.txt
</filename>

the following is what i need help on,

1. Does java has libraries to generate tar files?

2. Can multiple files be added to same tar?

Appreciate any help on this regard.

Thanks,

Shabarish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Here is a link showing TAR implemented in Java:

[Tar in Java|http://www.devdaily.com/java/jwarehouse/javatar-2.5/source/com/ice/tar/tar.java.shtml]