[
https://issues.apache.org/jira/browse/COMPRESS-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679166#comment-14679166
]
Stefan Bodewig commented on COMPRESS-319:
-----------------------------------------
It can's see the tar signature before gzip has "done its thing" and it doesn't
know about gzip (and shouldn't, IMHO).
Basically you'd do something like
{code}
ArchiveStreamFactory.createArchiveInputStream(new
BufferedInputStream(CompressorStreamFactory.createCompressorInputStream(in)))
{code}
which is something we could add as fallback to try after
createArchiveInputStream hasn't found an archiver (with some extra error
handling and some bookkeeping to prevent infinite loops, of course).
> ArchiveStreamFactory.createArchiveInputStream(InputStream) Does not support
> tar.gz files
> ----------------------------------------------------------------------------------------
>
> Key: COMPRESS-319
> URL: https://issues.apache.org/jira/browse/COMPRESS-319
> Project: Commons Compress
> Issue Type: Improvement
> Components: Archivers
> Affects Versions: 1.9
> Reporter: Matt Kusnierz
>
> Trying to extract from a tar.gz file, the
> org.apache.commons.compress.archivers.ArchiveStreamFactory.createArchiveInputStream(InputStream)
> throws an ArchiveException("No Archiver found for the stream signature")
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)