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

Leo Izen edited comment on COMPRESS-91 at 8/23/10 5:28 PM:
-----------------------------------------------------------

I tried this myself. If JarArchiveInputStream is before ZipArchiveInputStream, 
then when you open a file that is .zip but not .jar, it will return 
JarArchiveInputStream. There is no way to tell the difference between a jar and 
a zip file without looking at the file extension.

      was (Author: thebombzen):
    I tried this myself. If JarArchiveInputStream is before 
ZipArchiveInputStream, then when you open a file that is .zip but not .jar, it 
will return JarArchiveInputStream. There is no way to tell the difference 
between a jar and a zip file without looking at file extension.
  
> jar recognition is curently impossible.
> ---------------------------------------
>
>                 Key: COMPRESS-91
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-91
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: W2K and unbuntu JRE1.4 to 1.6.
>            Reporter: Torelli
>            Priority: Minor
>
> In ArchiveStreamFactory.createArchiveInputStream(final InputStream in),
> JarArchiveInputStream must be before ZipArchiveInputStream
> and a positive jar identification have to be confirmed by the first file 
> entry (META-INF/MANIFEST.MF).
> Regards.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to