commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Grobmeier" <grobme...@possessed.de>
Subject Re: [compress] Draft 6
Date Sat, 13 May 2006 09:14:32 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> ...so what's the benefit over the usual factory + constructor
> instantiation then?
> 
> Archive arch = new TarArchive(new File("my.tar"));
> Archive arch = ArchiveFactory.newInstance(new File("my.tar");
> Archive arch = ArchiveFactory.newInstance("tar");

i have read your suggestion but i was not sure why i should accept
strings for choosing an archive. I like the idea ArchiveFactory
identifys archives by it's header. So, thanks for making this clear to me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEZaN4kv8rKBUE/T4RAiV3AJ9WcG4Sfl4b7Hlv1pj/DDbojqbV9gCeJaFd
lZAWKvyFjba5F7LEVYQqKV4=
=9Ojn
-----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