[ 
https://issues.apache.org/jira/browse/COMPRESS-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679102#comment-14679102
 ] 

Stefan Bodewig commented on COMPRESS-319:
-----------------------------------------

TarArchiveInputStream cannot extract a tar.gz, you must wrap the original 
stream into a GZipCompressorInputStream first - you probably know that.

Our factories are written to know about "their kind of stream", so 
ArchiveStreamFactory doesn't know about CompressorStreams.  What you ask for 
would mean that ArchiveStreamFactory would ask consult CompressorStreamFactory 
if now stream matched directly and try again.  While this is doable (and likely 
needs a BufferedStream inbetween) it is not something that the class promises 
to do - that's why I changed the type to "Improvement".

> 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)

Reply via email to