Skip to Content
0
Oct 19, 2008 at 08:56 AM

TAR via java

17 Views

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