harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy, Jing Lv" <firep...@gmail.com>
Subject Re: [classlib][pack200] Unpacked my first archive today!
Date Tue, 10 Oct 2006 03:32:05 GMT
Alex Blewitt wrote:
> I managed to unpack a Pack200 file completely today for the first
> time, so that by the end of it there were no bytes left in the queue.
> Unfortunately, it wasn't a spectacularly exciting archive -- just one
> interface with no methods (about as exciting as
> java.lang.Serializable, in fact) but I think that I've unlocked the
> next stage in the process for decompressing the attributes that are
> left (including things like bytecodes, etc.).
> 
That's great achievement! :)

> At the moment, the data is just in an unpacked state; I've not yet
> looked at re-assembling the data into their constituent .class files
> (need to get hold of the class bytecode format for that) or even
> reconstituting the Jar file. I'm thinking of using ZipEntry and
> ZipOutputStream (or corresponding Jar variants) for building the
> resulting Jar file. I'm not sure whether they are implemented or not
> in the current trunk or not, but I might start working against the
> ZipOutputStream/ZipEntry APIs.
> 
Yes, IMHO it is necessary to understand class bytecode format. And 
Zip/Jar file operations has already implemented, you can use either Java 
APIs in Harmony or C APIs(we have zlib in archive\src\main\native) if 
necessary.

> Onward and upward ...
> 
Good luck! :)

> 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
> 
> 


-- 

Best Regards!

Jimmy, Jing Lv
China Software Development Lab, IBM

---------------------------------------------------------------------
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


Mime
View raw message