On Mon, 28 Sep 1998, Thomas Okken wrote:

>     private static final byte myGzippedData =
>     {
>         31, -117, 8, 8, -3, -3, 14, 54, 0, 3, 97, 0, -19, 93, 11,
>         -126, -37, -86, 14, -35, 42, 60, 46, -39, -1, 18, -34, 88, 31,
>         // and so on and so on... 22426 bytes in all
>     }

Unfortunantely, such array are initialized in java one by one. So for each
entry you need
dup
sipush index
bipush data
bastore
(8 bytes for each entry).
Max size for any method is 64k, so it is well above it.

You should load it from file - you can use Class.getResourceAsStream or
similar method. It works for both applications and applets.

Artur

Reply via email to