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

📄 r.java

📁 经过反编译和部分代码修改后的ultraimpro java源代码。可在netbean环境下成功编译。供学习和分析用。
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
            return;
        }
        a_javax_microedition_lcdui_Image_fld = image;
        Command command;
        if(a_int_fld == 2)
            command = UltraIMPro.o_CommandSave;
        else
        if(a_int_fld == 0)
            command = UltraIMPro.c_CommandSet;
        else
            command = UltraIMPro.G_CommandSend;
        a_ad_fld = new ad(0, null, this, command, image);
        a_ad_fld.addCommand(command);
        if(a_int_fld == 0 && b_int_fld == 3)
            a_ad_fld.addCommand(UltraIMPro.d_CommandSetSave);
        else
        if(a_int_fld == 1 && b_int_fld == 3)
            a_ad_fld.addCommand(UltraIMPro.e_CommandSendSave);
        a_ad_fld.addCommand(UltraIMPro.g_CommandCancel);
        a_ad_fld.setCommandListener(this);
        UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_ad_fld);
    }

    public final void a(int i, boolean flag)
    {
        if(c_int_fld == 1)
        {
            a_boolean_fld = false;
            c_int_fld = 0;
            MainMenuList.GetObject().a(a_ad_fld, 5, null);
            return;
        }
        if(a_int_fld == 0)
            if(b_int_fld != 5 || !MainMenuList.GetObject().e_java_lang_String_fld.equals(a_java_lang_String_fld))
            {
                Form form;
                (form = new Form("")).append("Data saving, please wait");
                UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(form);
                c();
                return;
            } else
            {
                UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_javax_microedition_lcdui_Displayable_fld);
                a_javax_microedition_lcdui_Image_fld = null;
                return;
            }
        if(a_int_fld == 1)
        {
            if(d > 0)
            {
                bj.a_mod_tob().a(null, d, b_java_lang_String_fld, a_javax_microedition_io_file_FileConnection_fld, a_java_io_InputStream_fld);
                a_javax_microedition_lcdui_Image_fld = null;
                return;
            }
            if(a_byte_array1d_fld == null)
                a_byte_array1d_fld = (new f(a_javax_microedition_lcdui_Image_fld)).a_mod_tob();
            int j = a_byte_array1d_fld.length;
            if(b_java_lang_String_fld == null || b_java_lang_String_fld.length() == 0)
                b_java_lang_String_fld = "photo.png";
            bj.a_mod_tob().a(h.a(a_byte_array1d_fld, 0, j), j, b_java_lang_String_fld, null, null);
            a_byte_array1d_fld = null;
            a_javax_microedition_lcdui_Image_fld = null;
        }
    }

    public final void b(int i, boolean flag)
    {
        if(b_int_fld == 5)
        {
            f();
            return;
        }
        if(c_int_fld == 1)
        {
            UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_ad_fld);
            return;
        } else
        {
            a_javax_microedition_lcdui_Image_fld = null;
            UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_javax_microedition_lcdui_Displayable_fld);
            return;
        }
    }

    private void f()
    {
        a_javax_microedition_lcdui_Image_fld = null;
        if(a_int_fld == 1)
            try
            {
                if(a_java_io_InputStream_fld != null)
                    a_java_io_InputStream_fld.close();
                if(a_javax_microedition_io_file_FileConnection_fld != null)
                    a_javax_microedition_io_file_FileConnection_fld.close();
            }
            catch(Exception _ex) { }
        a(c_java_lang_String_fld);
    }

    public final void c()
    {
        (new Thread(new bm(this))).start();
    }

    public final void d()
    {
        Form form;
        (form = new Form("")).append("Data saving, please wait");
        UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(form);
        (new Thread(new bi(this))).start();
    }

    public final void e()
    {
        int i;
        if((i = d) == 0 && a_byte_array1d_fld != null)
            i = a_byte_array1d_fld.length;
        if(i > 0)
        {
            StringBuffer stringbuffer;
            (stringbuffer = new StringBuffer()).append("file size:");
            stringbuffer.append(a(i)).append("\r\n");
            String s = stringbuffer.toString();
            UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(new bk(this, s + "Are you sure to SEND this file? It may fail if the file's size is too large(>250KB)", 0));
            return;
        } else
        {
            UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(new bk(this, "Are you sure to SEND this file? It may fail if the file's size is too large(>250KB)", 0));
            return;
        }
    }

    public static final String a(int i)
    {
        String s;
        if(i >= 1024)
        {
            i /= 1024;
            s = String.valueOf(i) + "KB";
        } else
        {
            s = String.valueOf(i) + "B";
        }
        return s;
    }

    public static final String a(r r1)
    {
        return r1.c_java_lang_String_fld;
    }

    private String c_java_lang_String_fld;
    public int a_int_fld;
    public int b_int_fld;
    public Displayable a_javax_microedition_lcdui_Displayable_fld;
    public Image a_javax_microedition_lcdui_Image_fld;
    public String a_java_lang_String_fld;
    public bd a_bd_fld;
    public boolean a_boolean_fld;
    public int c_int_fld;
    public ad a_ad_fld;
    public byte a_byte_array1d_fld[];
    public String b_java_lang_String_fld;
    public int d;
    public FileConnection a_javax_microedition_io_file_FileConnection_fld;
    public InputStream a_java_io_InputStream_fld;
    private Command a_javax_microedition_lcdui_Command_fld;

    // Unreferenced inner class ak
    class ak_r_local
        implements Runnable
    {

        public final void run()
        {
            a.b();
        }

        private final r a;

            public ak_r_local()
            {
                a = r.this;
            }
    }


    // Unreferenced inner class q
    class q_r_local
        implements Runnable
    {

        public final void run()
        {
            if(a_java_lang_String_fld.equals(r.a(a_r_fld)))
            {
                a_r_fld.b();
                return;
            }
            if(a_java_lang_String_fld.endsWith("/") || a_java_lang_String_fld.equals(".."))
            {
                a_r_fld.a(a_java_lang_String_fld, true);
                return;
            } else
            {
                a_r_fld.b(a_java_lang_String_fld);
                return;
            }
        }

        private final String a_java_lang_String_fld;
        private final r a_r_fld;

            public q_r_local(String s)
            {
                a_r_fld = r.this; 
                a_java_lang_String_fld = s;
            }
    }


    // Unreferenced inner class bm
    class bm_r_local
        implements Runnable
    {

        public final void run()
        {
            byte abyte0[];
label0:
            {
                abyte0 = null;
                int i = 0;
                if(a.a_java_lang_String_fld.equals("-1/default"))
                {
                    InputStreamUtil_p p1 = new InputStreamUtil_p(getClass().getResourceAsStream("/emotions/mydp.png"));
                    abyte0 = new byte[9000];
                    i = p1.ReadBytes(abyte0);
                } else
                if(a.a_byte_array1d_fld != null && a.a_byte_array1d_fld.length > 0)
                    i = (abyte0 = a.a_byte_array1d_fld).length;
                else
                    i = (abyte0 = (new f(a.a_javax_microedition_lcdui_Image_fld)).a_mod_tob()).length;
                RecordStore recordstore = null;
                Object obj = null;
                try
                {
                    for(; x.a(); Thread.sleep(100L));
                }
                catch(Exception _ex) { }
                x.a(true);
                try
                {
                    RecordStore.deleteRecordStore("UltraIMP1");
                    recordstore = RecordStore.openRecordStore("UltraIMP1", true);
                    String s2;
                    byte abyte1[] = (s2 = MainMenuList.GetObject().strLastAccntName).getBytes();
                    recordstore.addRecord(abyte1, 0, abyte1.length);
                    abyte1 = a.a_java_lang_String_fld.getBytes();
                    recordstore.addRecord(abyte1, 0, abyte1.length);
                    String s1;
                    abyte1 = (s1 = MainMenuList.CompSignPara(null, s2, i, new String(s.ConvertByteToChar((new v()).GetSegmentChecksum(abyte0, 0, i))))).getBytes();
                    recordstore.addRecord(abyte1, 0, abyte1.length);
                    recordstore.addRecord(abyte0, 0, i);
                    String s3;
                    if((s3 = MainMenuList.GetObject().f_java_lang_String_fld) == null || s3.length() == 0)
                        s3 = "*";
                    abyte1 = s3.getBytes();
                    recordstore.addRecord(abyte1, 0, abyte1.length);
                    if(h.a_mod_toi() > 0)
                        h.a(abyte0, 0, i, x.a_mod_tos(s1));
                    MainMenuList.GetObject().e_java_lang_String_fld = a.a_java_lang_String_fld;
                    a.a_bd_fld.e(s1);
                }
                catch(Exception _ex)
                {
                    MainMenuList.Close(recordstore);
                    break label0;
                }
                finally
                {
                    MainMenuList.Close(recordstore);
                    //break label0;
                    //throw exception;
                }
                MainMenuList.Close(recordstore);
                //break label0;
            }
            x.a(false);
            a.a_javax_microedition_lcdui_Image_fld = null;
            a.a_byte_array1d_fld = null;
            (new x(a.a_bd_fld, 0)).a(abyte0);
        }

        private final r a;

            public bm_r_local()
            {
                a = r.this;
            }
    }


    // Unreferenced inner class bi
    class bi_r_local
        implements Runnable
    {

        public final void run()
        {
            byte abyte0[] = null;
            abyte0 = (new f(a.a_javax_microedition_lcdui_Image_fld)).a_mod_tob();
            a.c_int_fld = l.a("Photo(" + r.a(abyte0.length) + ")", abyte0, 2);
            if(a.a_int_fld == 2)
            {
                MainMenuList.GetObject().a(((ba)a.a_javax_microedition_lcdui_Displayable_fld).a_javax_microedition_lcdui_Displayable_fld, 2, null);
                a.a_javax_microedition_lcdui_Displayable_fld = null;
            } else
            if(a.c_int_fld != 1)
                a.a_byte_array1d_fld = abyte0;
            a.a_boolean_fld = true;
        }

        private final r a;

            public bi_r_local()
            {
                a = r.this;
            }
    }

}

⌨️ 快捷键说明

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