All pastes #2074382 Raw Edit

Mine

public java v1 · immutable
#2074382 ·published 2011-06-04 01:00 UTC
rendered paste body
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.// Jad home page: http://www.kpdus.com/jad.html// Decompiler options: packimports(3) // Source File Name:   Q.javaimport java.io.*;import java.net.JarURLConnection;import java.net.URL;class Q{    Q()    {    }    static byte[] r(InputStream inputstream)        throws Throwable    {        ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();        byte abyte0[] = new byte[1024];        int i;        while((i = inputstream.read(abyte0)) > 0)             bytearrayoutputstream.write(abyte0, 0, i);        inputstream.close();        return bytearrayoutputstream.toByteArray();    }    static void d(byte abyte0[])    {        for(int i = 0; i < abyte0.length; i++)            switch(i & 3)            {            case 0: // '\0'                abyte0[i] ^= 0x49;                break;            case 1: // '\001'                abyte0[i] ^= 0x43;                break;            case 2: // '\002'                abyte0[i] ^= 0x46;                break;            case 3: // '\003'                abyte0[i] ^= 0x50;                break;            }    }    static int z(byte abyte0[])    {        for(int i = 0; i + 3 < abyte0.length; i++)            if(abyte0[i] == 80 && abyte0[i + 1] == 75 && abyte0[i + 2] == 3 && abyte0[i + 3] == 4)                return i;        return abyte0.length;    }    public static void main(String args[])        throws Throwable    {        JarURLConnection jarurlconnection = (JarURLConnection)(Q.class).getResource("Q.class").openConnection();        byte abyte0[] = r(jarurlconnection.getJarFileURL().openStream());        byte abyte1[] = r((Q.class).getResource("0").openStream());        byte abyte2[] = r((Q.class).getResource("1").openStream());        int i = z(abyte0);        byte abyte3[] = abyte1.length != i ? abyte1 : abyte2;        d(abyte3);        System.out.write(abyte3);        System.out.write(abyte0, i, abyte0.length - i);    }}