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

📄 aa.txt

📁 手机QQ原代码,有喜欢的朋友可以大量的下载,我不要钱的哦
💻 TXT
字号:
import java.io.*;
import java.util.Calendar;
import java.util.Vector;
import javax.microedition.io.*;
import javax.microedition.midlet.MIDlet;

public class aa
    implements Runnable
{

    private MIDlet a_javax_microedition_midlet_MIDlet_fld;
    private Vector a_java_util_Vector_fld;
    private Vector c;
    private Vector b_java_util_Vector_fld;
    private Vector d;
    public Thread a_java_lang_Thread_fld;
    private volatile boolean a_boolean_fld;
    private boolean b_boolean_fld;

    public aa(MIDlet midlet)
    {
        a_java_util_Vector_fld = new Vector();
        c = new Vector();
        b_java_util_Vector_fld = new Vector();
        d = new Vector();
        a_boolean_fld = false;
        b_boolean_fld = false;
        a_javax_microedition_midlet_MIDlet_fld = midlet;
        b();
        a_java_lang_Thread_fld = new Thread(this);
        a_java_lang_Thread_fld.setPriority(10);
        a_java_lang_Thread_fld.start();
    }

    private void b()
    {
        String s = a_javax_microedition_midlet_MIDlet_fld.getAppProperty("QQ-UseProxy");
        if(s != null)
        {
            if(s.equals("Y"))
            {
                b_boolean_fld = true;
            } else
            if(s.equals("N"))
            {
                b_boolean_fld = false;
            }
        }
    }

    public synchronized void a(String s, String s1, g g1, boolean flag)
    {
        a_java_util_Vector_fld.addElement(s);
        c.addElement(s1);
        b_java_util_Vector_fld.addElement(g1);
        d.addElement(new Boolean(flag));
        notify();
    }

    public void run()
    {
        Object obj = null;
        Object obj1 = null;
        Object obj2 = null;
        boolean flag = false;
_L3:
label0:
        {
            if(a_boolean_fld)
            {
                break; /* Loop/switch isn't completed */
            }
            synchronized(this)
            {
                do
                {
                    if(a_java_util_Vector_fld.size() != 0)
                    {
                        break label0;
                    }
                    try
                    {
                        wait();
                    }
                    catch(InterruptedException interruptedexception)
                    {
                        i.a("error in httpposter-run");
                    }
                } while(!a_boolean_fld);
            }
            break; /* Loop/switch isn't completed */
        }
        String s;
        String s1;
        g g1;
        boolean flag1;
        s = (String)a_java_util_Vector_fld.elementAt(0);
        s1 = (String)c.elementAt(0);
        g1 = (g)b_java_util_Vector_fld.elementAt(0);
        flag1 = ((Boolean)d.elementAt(0)).booleanValue();
        aa1;
        JVM INSTR monitorexit ;
          goto _L1
        exception;
        throw exception;
_L1:
        a(s, s1, g1, flag1);
        synchronized(this)
        {
            a_java_util_Vector_fld.removeElementAt(0);
            c.removeElementAt(0);
            b_java_util_Vector_fld.removeElementAt(0);
            d.removeElementAt(0);
        }
        if(true) goto _L3; else goto _L2
_L2:
    }

    private boolean a(String s, String s1, g g1, boolean flag)
    {
        HttpConnection httpconnection;
        DataInputStream datainputstream;
        DataOutputStream dataoutputstream;
        String s2;
        String s3;
        boolean flag1;
        httpconnection = null;
        datainputstream = null;
        dataoutputstream = null;
        s2 = null;
        s3 = null;
        flag1 = false;
        if(flag || b_boolean_fld)
        {
            String s4 = null;
            String s5 = null;
            int k = "http://".length();
            int l = s.indexOf('/', k);
            if(l < 0)
            {
                s4 = s.substring(k);
                s5 = "";
            } else
            {
                s4 = s.substring(k, l);
                s5 = s.substring(l);
            }
            i.a("http://10.0.0.172:80" + s5);
            i.a("X-Online-Host:" + s4);
            httpconnection = (HttpConnection)Connector.open("http://10.0.0.172:80" + s5, 3, true);
            httpconnection.setRequestProperty("X-Online-Host", s4);
        } else
        {
            i.a(s);
            httpconnection = (HttpConnection)Connector.open(s, 3, true);
        }
        httpconnection.setRequestProperty("Connection", "close");
        if(s1 == null)
        {
            httpconnection.setRequestMethod("GET");
        } else
        {
            httpconnection.setRequestMethod("POST");
            byte abyte0[] = i.a(s1);
            httpconnection.setRequestProperty("Content-Length", "" + abyte0.length);
            dataoutputstream = httpconnection.openDataOutputStream();
            dataoutputstream.write(abyte0);
        }
        datainputstream = httpconnection.openDataInputStream();
        int j = (int)httpconnection.getLength();
        byte abyte1[];
        if(j != -1)
        {
            abyte1 = new byte[j];
            datainputstream.readFully(abyte1);
        } else
        {
            ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
            int i1;
            while((i1 = datainputstream.read()) != -1) 
            {
                bytearrayoutputstream.write(i1);
            }
            abyte1 = bytearrayoutputstream.toByteArray();
            bytearrayoutputstream.close();
        }
        j = abyte1.length;
        byte abyte2[] = new byte[j + 2];
        abyte2[0] = (byte)(j >> 8);
        abyte2[1] = (byte)j;
        System.arraycopy(abyte1, 0, abyte2, 2, j);
        ByteArrayInputStream bytearrayinputstream = new ByteArrayInputStream(abyte2);
        DataInputStream datainputstream1 = new DataInputStream(bytearrayinputstream);
        s2 = datainputstream1.readUTF();
        datainputstream1.close();
        bytearrayinputstream.close();
        if(s2 == null)
        {
            flag1 = true;
            s3 = "http respone null";
        }
        if(datainputstream != null)
        {
            try
            {
                datainputstream.close();
            }
            catch(IOException ioexception) { }
        }
        if(dataoutputstream != null)
        {
            try
            {
                dataoutputstream.close();
            }
            catch(IOException ioexception1) { }
        }
        if(httpconnection != null)
        {
            try
            {
                httpconnection.close();
            }
            catch(IOException ioexception2) { }
        }
        break MISSING_BLOCK_LABEL_802;
        Object obj;
        obj;
        flag1 = true;
        s3 = "http connect ConnectionNotFoundException:" + ((ConnectionNotFoundException) (obj)).getMessage();
        if(datainputstream != null)
        {
            try
            {
                datainputstream.close();
            }
            catch(IOException ioexception3) { }
        }
        if(dataoutputstream != null)
        {
            try
            {
                dataoutputstream.close();
            }
            catch(IOException ioexception4) { }
        }
        if(httpconnection != null)
        {
            try
            {
                httpconnection.close();
            }
            catch(IOException ioexception5) { }
        }
        break MISSING_BLOCK_LABEL_802;
        obj;
        flag1 = true;
        s3 = "http connect IOException:" + ((IOException) (obj)).getMessage();
        if(datainputstream != null)
        {
            try
            {
                datainputstream.close();
            }
            catch(IOException ioexception6) { }
        }
        if(dataoutputstream != null)
        {
            try
            {
                dataoutputstream.close();
            }
            catch(IOException ioexception7) { }
        }
        if(httpconnection != null)
        {
            try
            {
                httpconnection.close();
            }
            catch(IOException ioexception8) { }
        }
        break MISSING_BLOCK_LABEL_802;
        obj;
        flag1 = true;
        s3 = "http connect Exception:" + ((Exception) (obj)).getMessage();
        if(datainputstream != null)
        {
            try
            {
                datainputstream.close();
            }
            catch(IOException ioexception9) { }
        }
        if(dataoutputstream != null)
        {
            try
            {
                dataoutputstream.close();
            }
            catch(IOException ioexception10) { }
        }
        if(httpconnection != null)
        {
            try
            {
                httpconnection.close();
            }
            catch(IOException ioexception11) { }
        }
        break MISSING_BLOCK_LABEL_802;
        Exception exception;
        exception;
        if(datainputstream != null)
        {
            try
            {
                datainputstream.close();
            }
            catch(IOException ioexception12) { }
        }
        if(dataoutputstream != null)
        {
            try
            {
                dataoutputstream.close();
            }
            catch(IOException ioexception13) { }
        }
        if(httpconnection != null)
        {
            try
            {
                httpconnection.close();
            }
            catch(IOException ioexception14) { }
        }
        throw exception;
        if(flag1)
        {
            i.a(s3);
            g1.c(s1, s3);
            return false;
        } else
        {
            i.a(Calendar.getInstance() + "receive:" + s2);
            g1.b(s1, s2.trim());
            return true;
        }
    }

    public void a()
    {
        a_boolean_fld = true;
        synchronized(this)
        {
            notify();
        }
    }
}

⌨️ 快捷键说明

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