You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2015/08/09 13:31:45 UTC

[jira] [Commented] (COMPRESS-319) ArchiveStreamFactory.createArchiveInputStream(InputStream) Does not support tar.gz files

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