commons-issues mailing list archives

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


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

This message was sent by Atlassian JIRA

View raw message