Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 5929 invoked from network); 12 May 2006 07:59:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2006 07:59:46 -0000 Received: (qmail 25030 invoked by uid 500); 12 May 2006 07:59:43 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 24956 invoked by uid 500); 12 May 2006 07:59:43 -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 24945 invoked by uid 99); 12 May 2006 07:59:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 00:59:43 -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; Fri, 12 May 2006 00:59:42 -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 9F9BB104C068 for ; Fri, 12 May 2006 10:01:05 +0200 (CEST) Message-ID: <446440EA.8070305@possessed.de> Date: Fri, 12 May 2006 10:01:46 +0200 From: "C. Grobmeier" User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: [compress] Draft 6 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 Hi, here is a new draft: http://www.grobmeier.de/commons-compress-draft-6.zip I have changed a lot of things discussed with draft 5. The API is easier now. Everything what seems to be unnecessary has been deleted. Compress is working with Files and InputStreams only, no more String-params are allowed. New is also ArchiveEntry, which represents the entry of an archive ;-). For example, a zip file can be created like this: Archiver archiver = ArchiverFactory.ZIP.getInstance(); archiver.add( new File("C:\\Temp\\1.html")); archiver.add( new File("C:\\Temp\\1.html.bz2")); archiver.save( new File("C:\\Temp\\ZIPTEST.zip")); and unpacked like this: Archiver archiver = ArchiverFactory.ZIP.getInstance( new File("C:\\Temp\\ZIPTEST.zip")); archiver.unpack( new File("C:\\Temp\\unpacked\\")); There a lots TODO, like handling archive-manipulating, overwriting files, checking out the solaris issue or how to set special flags. But imho with this interface we have done a step into the right direction and now we can think about the more difficult things. Regards, Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEZEDqkv8rKBUE/T4RAlP+AJ9wYDnXZoPK3/oAfutGSKfw690C6ACeNQHZ Qg9hnd0w6IqMLBV47pqzOXM= =zgEA -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org