⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 l.java

📁 webviwer,一个基于j2me的浏览器
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 

import java.io.*;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.rms.RecordStore;

public class l extends Canvas
{

    volatile String o;
    volatile String z;
    volatile String x;
    volatile boolean F;
    volatile int C;
    volatile String b;
    volatile String N;
    volatile String i;
    volatile Hashtable f;
    volatile boolean W;
    volatile byte a;
    volatile String T;
    volatile String ad;
    volatile int aa;
    volatile int k;
    volatile int B;
    volatile String q;
    volatile boolean j;
    volatile Font ag;
    volatile boolean E;
    volatile int af;
    volatile int w;
    volatile byte Q;
    volatile boolean v;
    volatile int e;
    private int p;
    private Display c;
    private String m;
    private int I;
    private int Y;
    private int g;
    private int ac;
    private Vector H;
    private Vector G;
    private Hashtable u;
    private boolean O;
    private boolean r;
    private t Z;
    private m A;
    private int y;
    private int d;
    private int s;
    private Command ae;
    private Command t;
    private Alert l;
    private String S;
    static final Font D;
    private static final int ab;
    private volatile int L;
    private volatile String n;
    private g K[];
    private int R;
    private int X;
    private int J;
    private Command P;
    private Command h;
    private Graphics U;
    private Image M;
    public static boolean V = false;

    private void i()
    {
label0:
        {
            RecordStore recordstore = null;
            try
            {
                recordstore = RecordStore.openRecordStore("clientID", false);
                q = (new DataInputStream(new ByteArrayInputStream(recordstore.getRecord(1)))).readUTF();
            }
            catch(Exception exception)
            {
                if(recordstore != null)
                    try
                    {
                        recordstore.closeRecordStore();
                    }
                    catch(Exception exception3) { }
                break label0;
            }
            finally
            {
                if(recordstore != null)
                    try
                    {
                        recordstore.closeRecordStore();
                    }
                    catch(Exception exception4) { }
                throw exception1;
            }
            if(recordstore != null)
                try
                {
                    recordstore.closeRecordStore();
                }
                catch(Exception exception2) { }
            break label0;
        }
    }

    public l(Display display)
    {
        String s1;
        o = null;
        z = null;
        x = null;
        i = null;
        f = null;
        W = true;
        a = 1;
        T = null;
        ad = null;
        q = null;
        j = true;
        ag = Font.getDefaultFont();
        E = false;
        af = 0;
        w = 0;
        Q = 0;
        v = false;
        e = 0;
        p = 0;
        m = null;
        I = 0;
        Y = 0;
        g = 0;
        ac = 0;
        H = null;
        G = null;
        u = null;
        O = false;
        r = false;
        Z = null;
        A = null;
        ae = null;
        t = null;
        l = new Alert("Error", null, null, AlertType.ERROR);
        S = null;
        l.setTimeout(-2);
        c = display;
        F = display.isColor();
        C = display.numColors();
        s1 = System.getProperty("microedition.platform");
        b = "ReqwirelessWeb/3.5";
        if(s1 == null || s1.equals("j2me")) goto _L2; else goto _L1
_L1:
        new StringBuffer();
        this;
        JVM INSTR dup_x1 ;
        b;
        append();
        ' ';
        append();
        s1;
        append();
        toString();
        b;
_L2:
        N = System.getProperty("microedition.locale");
        if(N != null && N.length() == 5)
            N = N + ", " + N.substring(0, 2) + ";q=0.5";
        aa = getWidth();
        B = getHeight();
        if(s1 != null)
        {
            if(aa == 128 && B == 96 && s1.startsWith("Nokia"))
            {
                Q = 5;
                p = 30000;
            } else
            if(aa == 96 && (B == 54 || B == 55 || B == 52) && (C == 2 && s1.equals("j2me") || s1.startsWith("Nokia")))
            {
                Q = 6;
                p = 30000;
            } else
            if((aa == 132 && B == 144 && C == 0x10000 || aa == 120 && B == 96 && C == 4096) && s1.equals("j2me"))
                p = 0x13880;
            else
            if(aa == 160 && B == 142 && s1.equals("j2me"))
                Q = 4;
            g(p);
        } else
        if(aa == 111 && B == 100 && C == 4 || aa == 120 && B == 160 && C == 256 && F || aa == 130 && B == 130 && C == 0x10000 && F || aa == 208 && B == 218 && C == 0x10000 && F || aa == 119 && B == 64 && C == 2)
        {
            y = 10;
            if(aa == 130)
                y = 14;
            else
            if(aa == 208)
                y = 5;
            Q = 1;
        } else
        if(B == 238 && aa == 240)
            Q = 2;
        else
        if((aa != 208 || C != 4096) && (aa != 128 || B != 127))
            Q = 3;
        k = B - ab - y;
        if(C > 16)
            try
            {
                Image.createImage("/1.jpg");
                v = true;
            }
            catch(Throwable throwable) { }
        if(!isDoubleBuffered() || B == 238 && aa == 240 && C == 4)
        {
            M = Image.createImage(aa, B);
            U = M.getGraphics();
        }
        i();
        if(q != null && q.length() > 0 && q.charAt(0) == '$')
            V = true;
        return;
    }

    public void g(int i1)
    {
        if(i1 <= 0)
            e = p;
        else
            e = i1;
    }

    public void a(m m1)
    {
        A = m1;
    }

    m n()
    {
        return A;
    }

    public void d(boolean flag)
    {
        F = flag;
    }

    public void a(int i1)
    {
        C = i1;
    }

    public void a(Font font)
    {
        if(font == null)
            font = Font.getDefaultFont();
        ag = font;
    }

    public synchronized void d(int i1)
    {
        K = new g[i1];
    }

    public synchronized void e(int i1)
    {
        X = i1;
        if(J > X && K != null)
        {
            for(int j1 = 0; j1 < K.length; j1++)
            {
                if(K[j1] == null || K[j1].g == null)
                    continue;
                K[j1].b();
                if(--J <= X)
                    break;
            }

        }
    }

    public synchronized void j()
    {
        if(K != null)
        {
            for(int i1 = K.length - 1; i1 >= 0; i1--)
                if(K[i1] != null)
                    K[i1].b();

            J = 0;
        }
    }

    public synchronized g[] m()
    {
        if(R == 0)
            return null;
        if(R >= K.length)
        {
            return K;
        } else
        {
            g ag1[] = new g[R];
            System.arraycopy(K, 0, ag1, 0, R);
            return ag1;
        }
    }

    public String h()
    {
        return o;
    }

    public String c()
    {
        return i;
    }

    public String o()
    {
        return b;
    }

    public void d(String s1)
    {
        b = s1;
    }

    public void b(boolean flag)
    {
        W = flag;
    }

    public void a(byte byte0)
    {
        a = byte0;
    }

    public void c(boolean flag)
    {
        try
        {
            if(flag)
            {
                if(G != null && ac < G.size() - 1)
                {
                    d d1 = (d)G.elementAt(ac);
                    b b1 = (b)H.elementAt((d1.a() + d1.b()) - 1);
                    if(b1.e + b1.b() < (I + k) - ag.getHeight())
                    {
                        ac++;
                        if(((b)H.elementAt(((d)G.elementAt(ac)).a())).e >= I + k && !j)
                            l();
                        repaint(0, 0, aa, B);
                    } else
                    if(((b)H.elementAt(((d)G.elementAt(ac + 1)).a())).e < I + k)
                    {
                        ac++;
                        repaint(0, 0, aa, B);
                    } else
                    if(!j)
                    {
                        l();
                        repaint(0, 0, aa, B);
                    }
                } else
                if(!j)
                {
                    l();
                    repaint(0, 0, aa, B);
                }
            } else
            if(G != null && ac > 0 && ac < G.size())
            {
                if(((b)H.elementAt(((d)G.elementAt(ac)).a())).e < I)
                {
                    r();
                } else
                {
                    d d2 = (d)G.elementAt(--ac);
                    b b2 = (b)H.elementAt((d2.a() + d2.b()) - 1);
                    if(b2.e + b2.b() <= I && I > 0)
                    {
                        r();
                        if(b2.e + b2.b() <= I)
                            ac++;
                    }
                }
                repaint(0, 0, aa, B);
            } else
            if(I > 0)
            {
                r();
                repaint(0, 0, aa, B);
            }
        }
        catch(ArrayIndexOutOfBoundsException arrayindexoutofboundsexception) { }
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -