commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Grobmeier" <grobme...@possessed.de>
Subject [compress] Introducing the Compress-Interface
Date Tue, 07 Mar 2006 14:55:09 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

after thinking a lot about the difference of archivers and compressors,
i am not sure how to proceed with it.

At the moment [1], we have an Archiv Interface. This fits fine for Tar
and Zip. If we imagine gunzip or bzip2 as an archive for an single file,
we would be fine aswell.
For the compression portion, we could have an Archiv::setCompression(
new TarCompressor()); method. For Zip we could have
Archiv::setCompression( new ZipCompressor());
(just an example, we will not have static methods here!)

We could implement a default Compressor for every Component, for
example, ZipArchiver would have ZipCompressor as a default, so it's not
a must to care about it.

A compressor could be used standalone. In case of bzip2 it would be not
problem, but how would a zipcompressor act? Archiving simply in zipformat?

Having said this i am afraid my thoughts could make everything to
complex. On the other hand, this sounds like a good idea for [compress].

Every comment on this important question is welcome.

Regards,
Chris

[1] http://grobmeier.de/commons-compress-draft-2.zip

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEDZ7Nkv8rKBUE/T4RAnbcAJ9pAEFWFUkaRc5y1HzEMLdTMKDPBgCaAidw
nJ6OCUMKp8rm3UeK/rp/KUI=
=mx3B
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message