Is it possible that if an ArchiveEntry coming from an ArchiveInputStream in the apache commons compress lib is another Archive, that I could then uncompress that archiveEntry into memory?
Thanks
Is it possible that if an ArchiveEntry coming from an ArchiveInputStream in the apache commons compress lib is another Archive, that I could then uncompress that archiveEntry into memory?
Thanks
Yes, it is possible. APIs that work with streams will work with ByteArrayInputStream
and ByteArrayOutputStream
.
If you show a code sample of what you're doing now, I will give you a more specific answer, but the idea is to read the uncompressed data into a byte array, then create a ByteArrayInputStream
from it and feed it to the second ArchiveInputStream
.