commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Burch (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COMPRESS-269) Common interface for SevenZFile and ArchiveInputStream
Date Thu, 13 Mar 2014 06:48:42 GMT

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

Nick Burch commented on COMPRESS-269:
-------------------------------------

Having implemented a wrapper in PackageParser for Apache Tika, I think it ought to be possible
for SevenZFile to just extend ArchiveInputStream, as it seems to implement all the required
methods anyway

> Common interface for SevenZFile and ArchiveInputStream
> ------------------------------------------------------
>
>                 Key: COMPRESS-269
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-269
>             Project: Commons Compress
>          Issue Type: Improvement
>          Components: Archivers
>    Affects Versions: 1.8
>            Reporter: Nick Burch
>            Priority: Minor
>
> Both SevenZFile and ArchiveInputStream (effectively) have a method on them:
> ArchiveEntry getNextEntry()
> However, they don't share a common interface or parent which defines this, so it isn't
possible to write generic code which would work with either to read archive entries out
> For Apache Tika, it would be good if after our 7z specific opening code, we could then
use common code to read out and process the archive entries no matter what the archive format
was



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message