From harmony-dev-return-8566-apmail-incubator-harmony-dev-archive=incubator.apache.org@incubator.apache.org Sun Jun 11 21:55:25 2006 Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 5130 invoked from network); 11 Jun 2006 21:55:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jun 2006 21:55:24 -0000 Received: (qmail 65785 invoked by uid 500); 11 Jun 2006 21:55:22 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 65380 invoked by uid 500); 11 Jun 2006 21:55:21 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 65366 invoked by uid 99); 11 Jun 2006 21:55:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jun 2006 14:55:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of alex.blewitt@gmail.com designates 66.249.82.205 as permitted sender) Received: from [66.249.82.205] (HELO wx-out-0102.google.com) (66.249.82.205) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jun 2006 14:55:20 -0700 Received: by wx-out-0102.google.com with SMTP id s6so813127wxc for ; Sun, 11 Jun 2006 14:54:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dJf5rV78g4VodjS+ZR+8G8zNY6z1lqBNefW6TpqUL5vOozmPuM3bAr0s4VlL11TVL6rWXW4T5Vj6ZXI3nW5o7Lu3B/9mpBpODAzgqAEAEFaU7QmNfdcA/3n2tA4FBjqgEiQcd6ID+MkPx1f6rIeqHqWmtOa42py9EUiPcrteimc= Received: by 10.70.25.9 with SMTP id 9mr5833421wxy; Sun, 11 Jun 2006 14:54:59 -0700 (PDT) Received: by 10.70.100.19 with HTTP; Sun, 11 Jun 2006 14:54:59 -0700 (PDT) Message-ID: <636fd28e0606111454v6732f3e3q3d7fa8abd77b7f2c@mail.gmail.com> Date: Sun, 11 Jun 2006 22:54:59 +0100 From: "Alex Blewitt" To: harmony-dev@incubator.apache.org Subject: Pack200 -- can now read constant pool header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Well, I'm about half way through being able to read my HelloWorld.jar file; I've got the basic codec working, as well as decoding the constant pools that come at the front of an archive. There's still some missing bits -- for example, I don't handle the s=2 set of encodings (largely because I'm not quite sure I understand from the spec how I'm supposed to treat them) and there's a really interesting feature of band encodings which says that they can be encoded arbitrarily by sending an effective escape character ... but fortunately, I don't have any of those in the simple case. Whilst it's no-where near ready (and may be ripe for several refactorings yet) is it worth taking what I've done and putting it in SVN so that others can see/play around with it? Unfortunately, it's a bit of a linear process since they're all variable length encodings; so you have do decode part N before you can decode part N+1. On the other hand, if anyone wanted to work on a compressor then that's a parallel activity ... Anyway, I'm assuming that it might need a new directory under /classlib/ for storing the pack200 stuff (hopefully so that it can be used as a standalone module e.g. for providing the command line tool) so there's a bit of administrivia to sort out; hopefully, someone here can help me with that :-) I should also point out that I've not tried compiling/running it with the harmony VM -- largely because there isn't one on a Mac (yet) so I'm working with the standard Eclipse+Apple VM. There's a danger that my code might inadvertently break the build, therefore :-/ I've also got to format the code and put the Apache copyright headers on -- I don't mind doing that prior to making a zip and attaching it in JIRA (which I'm assuming is the right process for initial uploads). If someone could point me in the right direction for where those are, that would be helpful. Alex. --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org