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

📄 b.java~1~

📁 jbenchmark3D 的源码,带jbuilder工程
💻 JAVA~1~
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-5-13 下午 08:55:00
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 

import java.io.IOException;
import java.io.InputStream;
import java.util.Hashtable;
import javax.microedition.io.*;
import javax.microedition.lcdui.Form;
import javax.microedition.m3g.Graphics3D;

public class b
    implements Runnable
{

    public b(c c1, Form form, String s)
    {
        a_javax_microedition_lcdui_Form_fld = form;
        a_c_fld = c1;
        a_java_lang_String_fld = s;
    }

    public void a()
    {
        String s = new String("");
        Object obj = null;
        a_javax_microedition_lcdui_Form_fld.append("Establishing connection with www.jbenchmark.com...\n");
        try
        {
            HttpConnection httpconnection = (HttpConnection)Connector.open(a_java_lang_String_fld);
            httpconnection.setRequestMethod("GET");
            httpconnection.setRequestProperty("X_JB_JBENCHMARK_HQ", String.valueOf(a_c_fld.d_int_fld));
            httpconnection.setRequestProperty("X_JB_JBENCHMARK_LQ", String.valueOf(a_c_fld.j));
            httpconnection.setRequestProperty("X_JB_TRIANGLE_COUNT", String.valueOf(a_c_fld.e));
            httpconnection.setRequestProperty("X_JB_TEXEL_COUNT", String.valueOf(a_c_fld.c_int_fld));
            httpconnection.setRequestProperty("X_JB_LOW_QUALITY_FRAMES", String.valueOf(a_c_fld.j));
            httpconnection.setRequestProperty("X_JB_HIGH_QUALITY_FRAMES", String.valueOf(a_c_fld.d_int_fld));
            Hashtable hashtable = Graphics3D.getProperties();
            httpconnection.setRequestProperty("X_JB_MAX_LIGHTS", s + (Integer)hashtable.get("maxLights"));
            httpconnection.setRequestProperty("X_JB_MAX_VIEWPORTDIMENSION", s + (Integer)hashtable.get("maxViewportDimension"));
            httpconnection.setRequestProperty("X_JB_MAX_TEXTUREDIMENSION", s + (Integer)hashtable.get("maxTextureDimension"));
            httpconnection.setRequestProperty("X_JB_MAX_SPRITECROPDIMENSION", s + (Integer)hashtable.get("maxSpriteCropDimension"));
            httpconnection.setRequestProperty("X_JB_MAX_TRANSFORMSPERVERTEX", s + (Integer)hashtable.get("maxTransformsPerVertex"));
            httpconnection.setRequestProperty("X_JB_NUM_TEXTUREUNITS", s + (Integer)hashtable.get("numTextureUnits"));
            httpconnection.setRequestProperty("X_JB_SUPPORT_ANTIALIASING", s + (Boolean)hashtable.get("supportAntialiasing"));
            httpconnection.setRequestProperty("X_JB_SUPPORT_TRUECOLOR", s + (Boolean)hashtable.get("supportTrueColor"));
            httpconnection.setRequestProperty("X_JB_SUPPORT_DITHERING", s + (Boolean)hashtable.get("supportDithering"));
            httpconnection.setRequestProperty("X_JB_SUPPORT_MIPMAPPING", s + (Boolean)hashtable.get("supportMipmapping"));
            httpconnection.setRequestProperty("X_JB_SUPPORT_PERSPECTIVECORRECTION", s + (Boolean)hashtable.get("supportPerspectiveCorrection"));
            httpconnection.setRequestProperty("X_JB_SUPPORT_LOCALCAMERALIGHTING", s + (Boolean)hashtable.get("supportLocalCameraLighting"));
            httpconnection.setRequestProperty("X_HAS_SCREENSHOT", String.valueOf(false));
            httpconnection.setRequestProperty("X_JB_MICROEDITION_M3G_VERSION", s + System.getProperty("microedition.m3g.version"));
            httpconnection.setRequestProperty("X_JB_MICROEDITION_COMMPORTS", s + System.getProperty("microedition.commports"));
            httpconnection.setRequestProperty("X_JB_MICROEDITION_HOSTNAME", s + System.getProperty("microedition.hostname"));
            httpconnection.setRequestProperty("X_JB_MICROEDITION_CONFIGURATION", s + System.getProperty("microedition.configuration"));
            httpconnection.setRequestProperty("X_JB_MICROEDITION_PROFILES", s + System.getProperty("microedition.profiles"));
            httpconnection.setRequestProperty("X_JB_MICROEDITION_PLATFORM", s + System.getProperty("microedition.platform"));
            httpconnection.setRequestProperty("X_JB_MICROEDITION_ENCODING", s + System.getProperty("microedition.encoding"));
            httpconnection.setRequestProperty("X_JB_MICROEDITION_LOCALE", s + System.getProperty("microedition.locale"));
            httpconnection.setRequestProperty("X_JB_DEVICE", a_c_fld.d_java_lang_String_fld);
            httpconnection.setRequestProperty("X_JB_LOGIN", a_c_fld.b_java_lang_String_fld);
            httpconnection.setRequestProperty("X_JB_PASSWORD", a_c_fld.a_java_lang_String_fld);
            httpconnection.setRequestProperty("X_JB_FULLCANVAS_WIDTH", String.valueOf(a_c_fld.h));
            httpconnection.setRequestProperty("X_JB_FULLCANVAS_HEIGHT", String.valueOf(a_c_fld.a_int_fld));
            httpconnection.setRequestProperty("X_JB_CANVAS_WIDTH", String.valueOf(a_c_fld.k));
            httpconnection.setRequestProperty("X_JB_CANVAS_HEIGHT", String.valueOf(a_c_fld.i));
            httpconnection.setRequestProperty("X_JB_ISCOLOR", String.valueOf(a_c_fld.b_boolean_fld));
            httpconnection.setRequestProperty("X_JB_ISDOUBLEBUFFERED", String.valueOf(a_c_fld.c_boolean_fld));
            httpconnection.setRequestProperty("X_JB_NUMBEROFCOLORS", String.valueOf(a_c_fld.f));
            httpconnection.setRequestProperty("X_JB_NUMBEROFTESTS", a_c_fld.getClass().valueOf(1));
            httpconnection.setRequestProperty("X_JB_VERSION", s + String.valueOf(a_c_fld.c_java_lang_String_fld));
            httpconnection.setRequestProperty("X_JB_ISJPEG", s + String.valueOf(a_c_fld.a_boolean_fld));
            httpconnection.setRequestProperty("X_JB_ALPHALEVELS", s + String.valueOf(a_c_fld.b_int_fld));
            httpconnection.setRequestProperty("X_JB_TOTAL_MEMORY", String.valueOf(Runtime.getRuntime().totalMemory()));
            httpconnection.setRequestProperty("X_JB_FREE_MEMORY", String.valueOf(Runtime.getRuntime().freeMemory()));
            Object obj1 = null;
            if(httpconnection.getResponseCode() == 200)
            {
                a_javax_microedition_lcdui_Form_fld.append("Connected, sending data...\n");
                InputStream inputstream = httpconnection.openInputStream();
                int i = (int)httpconnection.getLength();
                String s1 = "";
                if(i > 0)
                {
                    byte abyte0[] = new byte[i];
                    inputstream.read(abyte0);
                    s1 = new String(abyte0);
                }
                a_javax_microedition_lcdui_Form_fld.append(s1);
                a_javax_microedition_lcdui_Form_fld.append("Closing connection...\n");
                a_javax_microedition_lcdui_Form_fld.append("Finished.\n");
                if(inputstream != null)
                    inputstream.close();
                if(httpconnection != null)
                    httpconnection.close();
                if(inputstream != null)
                    inputstream.close();
                if(httpconnection != null)
                    httpconnection.close();
            } else
            {
                a_javax_microedition_lcdui_Form_fld.append("Sorry: uploading was not successful!\n");
            }
        }
        catch(IOException ioexception)
        {
            a_javax_microedition_lcdui_Form_fld.append("Sorry: uploading was not successful!\n");
            ioexception.printStackTrace();
        }
    }

    public void run()
    {
        a();
    }

    private c a_c_fld;
    private Form a_javax_microedition_lcdui_Form_fld;
    private String a_java_lang_String_fld;
}

⌨️ 快捷键说明

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