亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dictionary.java

?? 手機藍(lán)牙驅(qū)動和應(yīng)用實例源碼
?? JAVA
字號:
//
// Copyright 2002 Nokia Corporation
//
// THIS SOURCE CODE IS PROVIDED 'AS IS', WITH NO WARRANTIES WHATSOEVER,
// EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS
// FOR ANY PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE
// OR TRADE PRACTICE, RELATING TO THE SOURCE CODE OR ANY WARRANTY OTHERWISE
// ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE AND WITH NO
// OBLIGATION OF NOKIA TO PROVIDE THE LICENSEE WITH ANY MAINTENANCE OR
// SUPPORT. FURTHERMORE, NOKIA MAKES NO WARRANTY THAT EXERCISE OF THE
// RIGHTS GRANTED HEREUNDER DOES NOT INFRINGE OR MAY NOT CAUSE INFRINGEMENT
// OF ANY PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OWNED OR CONTROLLED
// BY THIRD PARTIES
//
// Furthermore, information provided in this source code is preliminary,
// and may be changed substantially prior to final release. Nokia Mobile
// Phones Ltd. retains the right to make changes to this source code at
// any time, without notice. This source code is provided for informational
// purposes only.
//
// Third-party brands and names are the property of their respective
// owners. Java(TM) and J2ME(TM) are registered trademarks of
// Sun Microsystems Inc.
//
// A non-exclusive, non-transferable, worldwide, limited license is hereby
// granted to the Licensee to download, print, reproduce and modify the
// source code. The licensee has the right to market, sell, distribute and
// make available the source code in original or modified form only when
// incorporated into the programs developed by the Licensee. No other
// license, express or implied, by estoppel or otherwise, to any other
// intellectual property rights is granted herein.
//


import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;

import java.io.*; //IOException;


// This class maps integer id's to Strings used in the user interface
// screens of the MIDlet. It is meant as a simple placeholder for
// internationalization support.
//
// Currently, the default (and only) language supported is "en-US".
// The class could be extended to support other mappings in the future,
// although it currently supports just one.
//
// (Note: A few simple strings used in CloseableCanvas like ":", "(", ")",
// numeric strings, and white space like " " or "\n" are not translated
// by the Dictionary. If those would need internationalization support,
// then appropriate support would need to be added.)

class Dictionary
{
    // The types of strings used in the MIDlet user interface are:
    //   LABEL : short text labels used in simple UI elements like
    //           Commands, List StringItems, etc.
    //    TEXT : text strings that are 'contents' of some screen, i.e. drawn
    //           in the game screen or used in the instructions screen

    private static short ix = 0;
    final static short TEXT_ZERO = ix++;
    final static short MENU_0  = ix++;
    final static short MENU_1  = ix++;
    final static short MENU_2  = ix++;
    final static short MENU_3  = ix++;
    final static short MENU_4  = ix++;
    final static short MENU_5  = ix++;
    final static short MENU_6  = ix++;
    final static short MENU_7  = ix++;
    final static short MENU_8  = ix++;
    final static short MENU_9  = ix++;
    final static short MENU_A  = ix++;
    final static short MENU_B  = ix++;
    final static short MENU_C  = ix++;
    final static short MENU_D  = ix++;
    final static short MENU_E  = ix++;
    final static short MENU_F  = ix++;
    final static short MENU_G  = ix++;
    final static short QUIT    = ix++;
    final static short BT_WAIT_JOIN = ix++;
    final static short BT_SEARCH_HOST = ix++;
    final static short TUT_1  = ix++;
    final static short TUT_2  = ix++;
    final static short TUT_3  = ix++;
    final static short TUT_4  = ix++;
    final static short TUT_5  = ix++;
    final static short CONT_1  = ix++;
    final static short CONT_2  = ix++;
    final static short CONT_3  = ix++;
    final static short CONT_4  = ix++;
    final static short CONT_5  = ix++;
    final static short CONT_6  = ix++;
    final static short CONT  = ix++;
    final static short CONT2  = ix++;
    final static short LEVEL_COMPLETE = ix++;
    final static short GAME_OVER = ix++;
    final static short OOT = ix++;
    final static short GET_READY = ix++;
    final static short ABSORB_GREEN = ix++;
    final static short ABSORB_PURP = ix++;
    final static short PRESS_FIRE = ix++;
    final static short CRED_1  = ix++;
    final static short CRED_2  = ix++;
    final static short CRED_3  = ix++;
    final static short CRED_4  = ix++;
    final static short CRED_5  = ix++;
    final static short CRED_6  = ix++;
    final static short CRED_7  = ix++;
    final static short CRED_8  = ix++;
    final static short CRED_9  = ix++;
    final static short INT_CONN = ix++;
    final static short SUB_SUC = ix++;
    final static short SUB_FAIL = ix++;
    final static short TIME = ix++;
    final static short LIVES = ix++;
    final static short SCORE = ix++;
    final static short BT_LOST = ix++;
    final static short COMP1 = ix++;
    final static short COMP2 = ix++;
    final static short COMP3 = ix++;
    final static short COMP4 = ix++;
    final static short COMP5 = ix++;
    final static short NUM_IDS = ix;

    private static Dictionary instance = null;
    static String locale;

	GameCanvas c;
    private String[] strings;


    Dictionary(GameCanvas can, String loc, String encoding)
    {

        // If you decide to add additional internationalization support,
        // you would need to modify this method, something like this:
        //    if (locale.equals("xx-YY"))
        //    {
        //        strings = stringsXxYY();
        //    }
        //    else if (locale.startsWith("zz"))
        //    {
        //        // e.g. might keep the strings a in .dat resource file
        //        strings = stringsZz();
        //    }
        //    else
        //    {
        //        strings = stringsEnUS(); // use default language
        //    }
        //
        // The strings returned by the 'stringsXxYy()' internationalization
        // methods could be defined at compile-time, as in the default
        // method stringsEnUs(), or at run-time.
        //
        // Run-time support would involve reading the strings
        // from appropriate resource files added to the MIDlet's .jar file.
        // (e.g. "en-UK.dat", "en.dat", "fi-FI.dat", "fi-SE.dat", etc.)
        // Such an approach would allow one to separate the process
        // of internationalizing strings from the process of compiling the
        // MIDlet. (Determining which .dat files are part of a particular
        // version of a MIDlet's .jar file, would be part of the
        // MIDlet jarring and deployment process.) You may also need
        // to used fixed dictionary entry ID's above.

        // The only language currently supported is the default one: "us-EN".
        c = can;
        locale = loc;
        strings = stringsEnUS();
    }


    private String[] stringsEnUS()
    {
        // USA English strings

        String[] strArray = new String[NUM_IDS];
		String	 sText = null;
		byte[] bText = new byte[1600];

		DataInputStream datainputstream = null;
		try
		{
			if (locale.startsWith("de"))
				datainputstream = new DataInputStream(getClass().getResourceAsStream("/de.txt"));
			else if (locale.startsWith("fr"))
				datainputstream = new DataInputStream(getClass().getResourceAsStream("/fr.txt"));
			else if (locale.startsWith("it"))
				datainputstream = new DataInputStream(getClass().getResourceAsStream("/it.txt"));
			else if (locale.startsWith("es"))
				datainputstream = new DataInputStream(getClass().getResourceAsStream("/sp.txt"));
			else
				datainputstream = new DataInputStream(getClass().getResourceAsStream("/en.txt"));

			datainputstream.readFully(bText);
		}
		catch (EOFException e)
		{
			// should be ok
			System.out.println ("EOFException");
		}
		catch (Exception e)
		{
			System.out.println ("Exception");
			return strArray;
		}
		finally
		{
			try
			{
				if (datainputstream != null)
					datainputstream.close();
				System.out.println ("Dict Closed ok");
			}
			catch (Exception ex)
			{
				// Who cares?
				System.out.println ("Dict Exception2 "+ex.getMessage());
			}

		}

		sText = fromUTF8(bText);
		if (sText != null)
		{
			strArray[TEXT_ZERO] 	= "";
			int i = 0,
				j = 1;
			StringBuffer buf = null;
//System.out.println (sText.length());
			while (i < sText.length())
			{
				if (buf == null) buf = new StringBuffer("");
				if (sText.charAt(i) == '\n' )
				{
					switch (j)
					{
						case 27:
							strArray[j++] = "|"+c.getKeyName(c.getKeyCode(GameCanvas.LEFT)) + " " + buf.toString();
							break;
						case 28:
							strArray[j++] = "|"+c.getKeyName(c.getKeyCode(GameCanvas.RIGHT)) + " " + buf.toString();
							break;
						case 29:
							strArray[j++] = "|"+c.getKeyName(c.getKeyCode(GameCanvas.UP)) + " " + buf.toString();
							break;
						case 30:
							strArray[j++] = "|"+c.getKeyName(c.getKeyCode(GameCanvas.DOWN)) + " " + buf.toString();
							break;
						case 31:
							strArray[j++] = "|"+c.getKeyName(c.getKeyCode(GameCanvas.FIRE)) + " " + buf.toString();
							break;
						case 32:
							strArray[j++] = strArray[26]+strArray[27]+strArray[28]+strArray[29]+strArray[30]+strArray[31];
						default:
							strArray[j++] = buf.toString();
							break;
					}
					buf = null;
					if (j >= NUM_IDS)
					{
//						System.out.println ("NUM_IDS too small");
						break;
					}
				}
				else
				{
					if ((int)sText.charAt(i) != 13) buf.append(sText.charAt(i));
				}
				i++;
			}
		}
		else
		{
System.out.println ("Dict Exception3 Shoite ");
		}

        return strArray;
    }


    String getString(int id)
    {
        if ((id >= 0) && (id < strings.length))
        {
            return strings[id];
        }
        else
        {
            throw new IllegalArgumentException("Errore" + id +
                " " + strings.length);
        }
    }

	static String fromUTF8 (byte [] ao)
	{
		int nCharCode, i;
		int nLength = ao.length;
		char [] ach = new char [nLength];

		int nCount = 0;

		loop: for (i = 0; i < nLength; i ++)
		{
			nCharCode = ((int) ao [i]) & 0x00ff;

			if (nCharCode >= 0x80)
			{
				if (nCharCode < 0xe0)
				{
					// need 2 bytes
					nCharCode = (nCharCode & 0x1f) << 6;
					nCharCode |= (((int) ao [++ i]) & 0x3f);
				}
				else
				{
					// need 3 bytes
					nCharCode = (nCharCode & 0x0f) << 12;
					nCharCode |= (((int) ao [++ i]) & 0x3f) << 6;
					nCharCode |= (((int) ao [++ i]) & 0x3f);

					// ignore character added by Notepad
					if (nCharCode == 0xfeff)
					{
						continue loop;
					}
				}
			}

			ach [nCount ++] = (char) nCharCode;
		}

		return new String (ach, 0, nCount);
	}

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产日韩a欧美在线观看| 美女脱光内衣内裤视频久久影院| 亚洲电影视频在线| 国v精品久久久网| 欧美巨大另类极品videosbest| 国产女人水真多18毛片18精品视频 | 国内成+人亚洲+欧美+综合在线| 91麻豆免费视频| 久久精品人人做| 久久精品国产久精国产爱| 欧美三级在线视频| 一区二区成人在线| 91在线视频网址| 国产精品久久久久永久免费观看 | 奇米色一区二区| 91老师片黄在线观看| 欧美激情一区二区三区全黄| 激情六月婷婷久久| 欧美大白屁股肥臀xxxxxx| 亚洲国产人成综合网站| 色就色 综合激情| 国产精品久久久久久久第一福利| 国产精品77777竹菊影视小说| 欧美大白屁股肥臀xxxxxx| 日韩国产精品91| 制服丝袜国产精品| 欧美aaaaaa午夜精品| 91麻豆精品国产91久久久使用方法| 亚洲综合男人的天堂| 欧美无乱码久久久免费午夜一区| 亚洲人成7777| 欧美性猛交xxxx乱大交退制版| 亚洲免费视频成人| 欧美伊人久久久久久久久影院| 亚洲精品视频在线观看免费| 色综合久久综合网97色综合| 亚洲精品视频在线| 欧美三级电影精品| 日韩成人av影视| 亚洲精品一区二区三区影院| 国产一区二区三区不卡在线观看 | 精品久久一区二区| 精品一区精品二区高清| 亚洲精品一区二区三区在线观看| 国产盗摄视频一区二区三区| 国产精品久久三| 色美美综合视频| 天天影视色香欲综合网老头| 91麻豆精品91久久久久同性| 久草中文综合在线| 国产欧美精品一区二区色综合朱莉| av亚洲精华国产精华精| 亚洲一区二三区| 欧美一区二区免费| 国产丶欧美丶日本不卡视频| 亚洲码国产岛国毛片在线| 欧美日韩1区2区| 国产精品白丝jk黑袜喷水| 亚洲图片欧美激情| 欧美久久久久免费| 国产精品一区专区| 亚洲老妇xxxxxx| 91精品国产综合久久久久久| 成人一区二区三区中文字幕| 亚洲伊人色欲综合网| 久久网这里都是精品| 日本久久精品电影| 韩国毛片一区二区三区| 亚洲色图在线看| 日韩欧美国产一区二区在线播放| 成人黄色电影在线| 青草av.久久免费一区| 中文字幕第一区综合| 在线电影欧美成精品| www.综合网.com| 久久精品国产成人一区二区三区| 亚洲视频香蕉人妖| 欧美成人在线直播| 欧美亚洲动漫制服丝袜| 丁香亚洲综合激情啪啪综合| 丝袜美腿亚洲色图| 亚洲三级在线观看| 久久久精品日韩欧美| 制服丝袜国产精品| 欧美午夜精品久久久久久孕妇| 国产高清成人在线| 日本免费在线视频不卡一不卡二| 亚洲欧洲精品一区二区三区 | 亚洲精品水蜜桃| 国产女同性恋一区二区| 日韩精品一区在线| 51精品秘密在线观看| 欧美视频在线一区二区三区| 成人一区二区三区视频在线观看| 日韩成人一级片| 婷婷成人综合网| 亚洲综合激情小说| 一区二区在线看| 综合久久综合久久| 国产精品久久久久久久久果冻传媒| 久久精品一区二区三区av| 日韩三级视频在线看| 在线不卡欧美精品一区二区三区| 欧美在线观看一区二区| 色久优优欧美色久优优| 91色|porny| 在线精品视频免费播放| 色综合天天性综合| 99久久久久免费精品国产| heyzo一本久久综合| 99这里都是精品| 色婷婷久久综合| 在线观看日产精品| 在线看日韩精品电影| 欧美在线一二三| 欧美色图在线观看| 欧美电影影音先锋| 精品国产一区二区三区四区四| 日韩一级视频免费观看在线| 91精品国产乱| 精品欧美一区二区三区精品久久| 日韩免费高清电影| 久久久蜜桃精品| 中文乱码免费一区二区| 1区2区3区精品视频| 一区二区三区国产精华| 亚洲成年人网站在线观看| 免费在线观看不卡| 国产一区二区在线影院| 99在线热播精品免费| 精品视频资源站| 日韩久久久久久| 中文字幕电影一区| 亚洲一区日韩精品中文字幕| 美腿丝袜亚洲色图| 国产成a人亚洲| 色八戒一区二区三区| 欧美久久久久久久久久| 久久综合精品国产一区二区三区| 国产午夜亚洲精品午夜鲁丝片| 一区二区中文视频| 日精品一区二区三区| 国产精品一色哟哟哟| 在线观看国产91| 337p日本欧洲亚洲大胆色噜噜| 国产日本亚洲高清| 亚洲国产欧美一区二区三区丁香婷| 免费观看在线色综合| 97久久人人超碰| 欧美一区午夜视频在线观看| 国产精品嫩草久久久久| 天使萌一区二区三区免费观看| 国产成人a级片| 欧美电影影音先锋| 成人欧美一区二区三区小说| 久久精品国产精品青草| 在线观看视频一区二区欧美日韩| 日韩精品最新网址| 亚洲国产精品综合小说图片区| 国产麻豆精品一区二区| 欧美亚洲一区二区三区四区| 久久精品夜色噜噜亚洲aⅴ| 一区二区高清免费观看影视大全 | 欧美日韩精品一区二区三区蜜桃| 国产日韩欧美高清| 久久草av在线| 欧美无砖专区一中文字| 国产精品卡一卡二卡三| 国模一区二区三区白浆| 欧美日韩激情一区二区| 成人免费小视频| 国产精品一区三区| 日韩欧美一级精品久久| 亚洲成人动漫一区| 色狠狠一区二区| 欧美国产日韩a欧美在线观看 | 午夜不卡av在线| 99视频有精品| 国产欧美日韩在线看| 激情综合网最新| 91精品国产综合久久久久| 亚洲综合一区二区| 91视频在线观看| 亚洲色图视频网站| 99久久er热在这里只有精品15| 久久精品一区二区三区四区| 久久不见久久见免费视频1| 在线91免费看| 天天综合网天天综合色| 在线播放欧美女士性生活| 一区二区三区视频在线观看| 色哟哟国产精品| 亚洲欧美国产高清| 99re66热这里只有精品3直播| 亚洲欧洲精品成人久久奇米网| 粗大黑人巨茎大战欧美成人| 国产亚洲成年网址在线观看| 国产一区二区免费看| 久久精品视频网| 成人在线视频一区|