Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 74515 invoked from network); 13 May 2006 09:12:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 May 2006 09:12:28 -0000 Received: (qmail 22618 invoked by uid 500); 13 May 2006 09:12:25 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 22535 invoked by uid 500); 13 May 2006 09:12:25 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 22524 invoked by uid 99); 13 May 2006 09:12:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 May 2006 02:12:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.20.116.97] (HELO s375.deinprovider.de) (217.20.116.97) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 May 2006 02:12:22 -0700 Received: from [127.0.0.1] (217-20-116-97.internetserviceteam.com [217.20.116.97]) by s375.deinprovider.de (Postfix) with ESMTP id 91DBF104C05F for ; Sat, 13 May 2006 11:13:53 +0200 (CEST) Message-ID: <4465A378.3050102@possessed.de> Date: Sat, 13 May 2006 11:14:32 +0200 From: "C. Grobmeier" User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [compress] Draft 6 References: <446440EA.8070305@possessed.de> <98e4f1cd0605120715q4746368fg3fe0a69881668829@mail.gmail.com> <6bde122b0605120808g3726c868k78c256e079cb7f32@mail.gmail.com> <98e4f1cd0605120909j148d11c6s26a2c2597d1936a5@mail.gmail.com> <6bde122b0605121149p72d5588bif604d2100e341278@mail.gmail.com> <98e4f1cd0605130022i63275c70m3fc30742a342fba2@mail.gmail.com> In-Reply-To: <98e4f1cd0605130022i63275c70m3fc30742a342fba2@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N -----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