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

📄 l.java

📁 经过反编译和部分代码修改后的ultraimpro java源代码。可在netbean环境下成功编译。供学习和分析用。
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        char c1;
        if((c1 = s.charAt(0)) == 'I')
        {
            int i1 = s.indexOf(',', 2);
            int l1 = Integer.parseInt(s.substring(2, i1));
            String s1 = s.substring(i1 + 1);
            g1.drawImage((Image)a_java_util_Hashtable_fld.get(s1), l1, k * d, 20);
            return;
        }
        int j1 = s.indexOf(',');
        int i2 = Integer.parseInt(s.substring(0, j1));
        int k1 = s.indexOf(',', j1 + 1);
        int j2;
        switch(j2 = Integer.parseInt(s.substring(j1 + 1, k1)))
        {
        case 1: // '\001'
            g1.setColor(0x545454);
            break;

        case 2: // '\002'
            g1.setColor(255);
            break;

        case 3: // '\003'
            g1.setColor(0xfd9642);
            break;
        }
        g1.drawString(s.substring(k1 + 1), i2, k * d, 20);
    }

    public final void keyPressed(int k)
    {
        switch(k)
        {
        case -1: 
        case 50: // '2'
            if(h <= 0)
            {
                return;
            } else
            {
                h--;
                a_boolean_static_fld = false;
                repaint();
                return;
            }

        case -6: 
        case -2: 
        case 56: // '8'
            if(h + e >= j)
            {
                return;
            } else
            {
                h++;
                a_boolean_static_fld = false;
                repaint();
                return;
            }

        case -20: 
        case -5: 
            if(i == 0)
            {
                a_bj_fld.h();
                return;
            }
            UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_javax_microedition_lcdui_Displayable_fld);
            break;
        }
    }

    public final void showNotify()
    {
        if(i == 0 && a_bj_fld != null)
        {
            a_bj_fld.b(false);
            if(!a_bj_fld.d_boolean_fld)
            {
                a_bj_fld.d_boolean_fld= true;
                a_bj_fld.c(false);
            }
        }
    }

    public final void sizeChanged(int k, int i1)
    {
        b_int_fld = getHeight();
        e = b_int_fld / d - 1;
        if(i == 0)
        {
            int j1;
            if((j1 = e * 10) > 100)
                j1 = 100;
            if(j1 > f)
            {
                f = j1;
                bj.a(f);
            }
        }
    }

    public final void commandAction(Command command, Displayable displayable)
    {
        if(command == UltraIMPro.K_CommandCompose)
        {
            a_bj_fld.h();
            return;
        }
        if(command == UltraIMPro.f_CommandBack)
        {
            a_bj_fld.d();
            return;
        }
        if(command == UltraIMPro.h_CommandConversations)
        {
            a_bj_fld.c();
            return;
        }
        if(command == UltraIMPro.L_CommandInvite)
        {
            a_bj_fld.a();
            return;
        }
        if(command == UltraIMPro.N_CommandFriendPic)
            if(MainMenuList.GetObject().d_int_fld == 0)
            {
                a_bj_fld.j();
                return;
            } else
            {
                Alert alert;
                (alert = new Alert("", "Display picture is off now.", null, AlertType.INFO)).setTimeout(-2);
                UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(alert);
                return;
            }
        if(command == UltraIMPro.M_CommandSendFile)
        {
            a_bj_fld.i();
            return;
        }
        if(command == UltraIMPro.z_CommandPhotoAlbum)
        {
            MainMenuList.GetObject().a(this, 2, null);
            return;
        }
        if(command == UltraIMPro.P_CommandSaveChat)
        {
            byte abyte0[] = Utf8Util_ao.Encode(false, a_mod_tos());
            String s = null;
            int k;
            if(abyte0 == null || abyte0.length == 0)
                s = "Nothing to save";
            else
                switch(k = a(b_java_lang_String_fld, abyte0, 1))
                {
                case 0: // '\0'
                    s = "Save successful";
                    break;

                case 1: // '\001'
                    s = "Can't store more than 5 records, delete one first";
                    break;

                case -1: 
                    s = "Save failed";
                    break;
                }
            Alert alert1;
            (alert1 = new Alert("", s, null, AlertType.INFO)).setTimeout(-2);
            UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(alert1);
            return;
        }
        if(command == UltraIMPro.O_CommandParticipants)
        {
            a_bj_fld.b();
            return;
        }
        if(command == UltraIMPro.Q_CommandCloseConversation)
        {
            a_bj_fld.e(true);
            return;
        }
        if(command == UltraIMPro.b_CommandOk)
            UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_javax_microedition_lcdui_Displayable_fld);
    }

    public static final int a(String s, byte abyte0[], int k)
    {
        byte byte0;
label0:
        {
            byte0 = -1;
            if(abyte0 == null || abyte0.length <= 0)
                break label0;
            RecordStore recordstore = null;
            String s1;
            String s2;
            if(k == 2)
            {
                s1 = "UltraIMP4";
                s2 = "p";
            } else
            {
                s1 = "UltraIMP3";
                s2 = "h";
            }
            try
            {
                if((recordstore = RecordStore.openRecordStore(s1, true)).getNumRecords() >= 5)
                {
                    byte0 = 1;
                } else
                {
                    String as[];
                    String s3 = (as = a(s, s2))[0];
                    RecordStore recordstore1 = null;
                    try
                    {
                        do
                        {
                            MainMenuList.Close(recordstore1 = RecordStore.openRecordStore(s3, false));
                            s3 = s3 + "a";
                        } while(true);
                    }
                    catch(Exception _ex)
                    {
                        (recordstore1 = RecordStore.openRecordStore(s3, true)).addRecord(abyte0, 0, abyte0.length);
                    }
                    MainMenuList.Close(recordstore1);
                    byte abyte1[] = Utf8Util_ao.Encode(false, s3 + "\r\n" + as[1]);
                    recordstore.addRecord(abyte1, 0, abyte1.length);
                    byte0 = 0;
                }
            }
            catch(Exception _ex)
            {
                MainMenuList.Close(recordstore);
                break label0;
            }
            finally
            {
                //Exception exception;
                MainMenuList.Close(recordstore);
                //throw exception;
            }
            MainMenuList.Close(recordstore);
            break label0;
        }
        return byte0;
    }

    public final String a_mod_tos()
    {
        StringBuffer stringbuffer = new StringBuffer();
        Object obj = null;
        int k1 = 0;
        for(int l1 = 0; l1 < j; l1++)
        {
            Vector vector = (Vector)a_java_util_Vector_fld.elementAt(l1);
            boolean flag = false;
            for(int i2 = 0; i2 < vector.size(); i2++)
            {
                String s;
                if((s = (String)vector.elementAt(i2)).charAt(0) == 'I')
                {
                    stringbuffer.append(s).append('\r');
                    flag = true;
                    continue;
                }
                int k = s.indexOf(',');
                int i1 = s.indexOf(',', k + 1);
                int j1;
                if((j1 = Integer.parseInt(s.substring(k + 1, i1))) != 3)
                {
                    stringbuffer.append(s).append('\r');
                    flag = true;
                }
            }

            if(flag)
            {
                k1++;
                stringbuffer.append('\n');
            }
        }

        if(k1 == 0)
        {
            return null;
        } else
        {
            stringbuffer.insert(0, k1 + "\r\n");
            return stringbuffer.toString();
        }
    }

    public static final String[] a(String s, String s1)
    {
        StringBuffer stringbuffer;
        (stringbuffer = new StringBuffer()).append(s).append(' ');
        Calendar calendar = Calendar.getInstance();
        String s2 = String.valueOf(Calendar.getInstance().getTime().getTime());
        String as[] = new String[2];
        int k;
        if((k = s2.length()) <= 8)
            as[0] = s1 + s2;
        else
            as[0] = s1 + s2.substring(k - 8);
        stringbuffer.append(calendar.get(1)).append('-');
        stringbuffer.append(calendar.get(2) + 1).append('-');
        stringbuffer.append(calendar.get(5)).append(' ');
        stringbuffer.append(calendar.get(11)).append(':');
        stringbuffer.append(calendar.get(12));
        as[1] = stringbuffer.toString();
        return as;
    }

    public static l a_l_static_fld;
    public Hashtable a_java_util_Hashtable_fld;
    public Font a_javax_microedition_lcdui_Font_fld;
    public Font b_javax_microedition_lcdui_Font_fld;
    public int a_int_fld;
    public int b_int_fld;
    public int c;
    public int d;
    public int e;
    public int f;
    public int g;
    public Vector a_java_util_Vector_fld;
    public String a_java_lang_String_fld;
    public String b_java_lang_String_fld;
    public int h;
    public static boolean a_boolean_static_fld = true;
    public static boolean b_boolean_static_fld = true;
    public bj a_bj_fld;
    public int i;
    public int j;
    public Displayable a_javax_microedition_lcdui_Displayable_fld;
    public String a_java_lang_String_array1d_fld[];

}

⌨️ 快捷键说明

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