All pastes #261208 Raw Edit

Miscellany

public text v1 · immutable
#261208 ·published 2006-11-29 00:47 UTC
rendered paste body
public class I
{

    public I()
    {
    }

    public static final synchronized String I(int i)
    {
        int j = i & 0xff;
        if(intern[j] != i)
        {
            intern[j] = i;
            if(i < 0)
                i &= 0xffff;
            String s = (new String(getClass, i, getClass[i - 1] & 0xff)).intern();
            getResourceAsStream[j] = s;
        }
        return getResourceAsStream[j];
    }

    static byte getClass[];
    static String getResourceAsStream[] = new String[256];
    static int intern[] = new int[256];

    static 
    {
        try
        {
            InputStream inputstream = (new I()).getClass().getResourceAsStream("" + 'I' + '.' + 'g' + 'i' + 'f');
            if(inputstream != null)
            {
                int i = inputstream.read() << 16 | inputstream.read() << 8 | inputstream.read();
                getClass = new byte[i];
                int j = 0;
                byte byte0 = (byte)i;
                byte abyte0[] = getClass;
                while(i != 0) 
                {
                    int k = inputstream.read(abyte0, j, i);
                    if(k == -1)
                        break;
                    i -= k;
                    for(k += j; j < k; j++)
                        abyte0[j] ^= byte0;

                }
                inputstream.close();
            }
        }
        catch(Exception exception) { }
    }
}