You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Arno Unkrig (JIRA)" <ji...@apache.org> on 2014/11/03 06:22:33 UTC
[jira] [Created] (COMPRESS-292) Add support for virtual formats
Arno Unkrig created COMPRESS-292:
------------------------------------
Summary: Add support for virtual formats
Key: COMPRESS-292
URL: https://issues.apache.org/jira/browse/COMPRESS-292
Project: Commons Compress
Issue Type: New Feature
Components: Archivers, Compressors
Affects Versions: 1.9
Reporter: Arno Unkrig
Hello COMPRESS team!
Most applications know at compile-time which archive/compression format they want to use, but some don't. {{ArchiveStreamFactory}} and {{CompressorStreamFactory}} provide minimal support for runtime format processing, but more comprehensive handling would be greatly appreciated.
I propose the addition of the {{ArchiveFormat}} and {{CompressionFormat}} interfaces, together with their factories, to implement the following:
* Detection of archive/compression formats from contents, file name or format name
* Conversion of archive/compressed file names, e.g. "mydir" => "mydir.tar" => "mydir.tar.gz"
* Runtime extensibility through format auto-registration
* Writing archive entries without knowing he archive type at compile-time
* Automated conversion of archive entries when copying from one format to another
A sample design is available [here|https://svn.code.sf.net/p/loggifier/code/trunk/de.unkrig.commons.file/src/de/unkrig/commons/file/org/apache/commons/compress/]. If you like it, I would gladly donate it to the the project. The current license is "New BSD", which is (hopefully) compatible with yours.
Regards,
Arno Unkrig
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)