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

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

?? jtpresource.java

?? 自己設(shè)計(jì)的小程序
?? JAVA
字號(hào):
package com.sunking.tp.util;

import java.io.*;
import java.util.*;

/**
 * <p>Title: JTPResource</p>
 * <p>Description: 資源調(diào)入,運(yùn)行此類可以將手寫(xiě)的properties文件生成unicode碼的資源文件</p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: </p>
 * @author <a href="mailto:sunkingxie@hotmail.com">SunKing</a>
 * @version 1.0
 */

public class JTPResource {
    ResourceBundle rb;
    private JTPResource() {}

    private static JTPResource defaultInstance;
    public static JTPResource getDefault() {
        if (defaultInstance == null) {
            defaultInstance = new JTPResource();
        }
        return defaultInstance;
    }

    public String getString(String key) {
        if (rb == null) {
            try {
                rb = ResourceBundle.getBundle("JTPResources", Locale.getDefault(),
                    ClassLoader.getSystemClassLoader());
            } catch (Exception ex) {
                throw new NullPointerException("ERROR:CAN NOT FOUND RESOURCE FILE!  " +
                    new File("src/JTPResources_" +
                    Locale.getDefault().toString() + ".properties").getAbsolutePath());
            }
        }
        return rb.getString(key);
    }

    /**
     * 資源文件生成
     */
    public static void main(String argv[]) {
        try {
            //英文
            Properties p = new Properties();
            p.load(new FileInputStream("resources/JTPResources.properties"));
            p.store(new FileOutputStream("src/JTPResources.properties"), null);
            //簡(jiǎn)體中文
            p = new MyProperties("GB2312");
            p.load(new FileInputStream("resources/JTPResources_zh_CN.properties"));
            p.store(new FileOutputStream("src/JTPResources_zh_CN.properties"), null);
            //繁體中文
            p = new MyProperties("BIG5");
            p.load(new FileInputStream("resources/JTPResources_zh_TW.properties"));
            p.store(new FileOutputStream("src/JTPResources_zh_TW.properties"), null);
            p.store(new FileOutputStream("src/JTPResources_zh_HK.properties"), null);
            p.store(new FileOutputStream("src/JTPResources_zh_MO.properties"), null);
            //日語(yǔ)
            p = new MyProperties("SJIS");
            p.load(new FileInputStream("resources/JTPResources_ja_JP.properties"));
            p.store(new FileOutputStream("src/JTPResources_ja_JP.properties"), null);

        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}

/**
 * <p>Title: MyProperties</p>
 * <p>Description: 可調(diào)入自定義內(nèi)碼的Properties</p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: </p>
 * @author <a href="mailto:sunkingxie@hotmail.com">SunKing</a>
 * @version 1.0
 */
class MyProperties extends Properties {
    String encoding;
    public MyProperties(String encoding) {
        this.encoding = encoding;
    }

    private static final String keyValueSeparators = "=: \t\r\n\f";
    private static final String strictKeyValueSeparators = "=:";
    private static final String specialSaveChars = "=: \t\r\n\f#!";
    private static final String whiteSpaceChars = " \t\r\n\f";
    public synchronized void load(InputStream inStream) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(inStream, encoding));
        while (true) {
            // Get next line
            String line = in.readLine();
            if (line == null)
                return;

            if (line.length() > 0) {

                // Find start of key
                int len = line.length();
                int keyStart;
                for (keyStart = 0; keyStart < len; keyStart++)
                    if (whiteSpaceChars.indexOf(line.charAt(keyStart)) == -1)
                        break;

                // Blank lines are ignored
                if (keyStart == len)
                    continue;

                // Continue lines that end in slashes if they are not comments
                char firstChar = line.charAt(keyStart);
                if ( (firstChar != '#') && (firstChar != '!')) {
                    while (continueLine(line)) {
                        String nextLine = in.readLine();
                        if (nextLine == null)
                            nextLine = "";
                        String loppedLine = line.substring(0, len - 1);
                        // Advance beyond whitespace on new line
                        int startIndex;
                        for (startIndex = 0; startIndex < nextLine.length(); startIndex++)
                            if (whiteSpaceChars.indexOf(nextLine.charAt(startIndex)) == -1)
                                break;
                        nextLine = nextLine.substring(startIndex, nextLine.length());
                        line = new String(loppedLine + nextLine);
                        len = line.length();
                    }

                    // Find separation between key and value
                    int separatorIndex;
                    for (separatorIndex = keyStart; separatorIndex < len; separatorIndex++) {
                        char currentChar = line.charAt(separatorIndex);
                        if (currentChar == '\\')
                            separatorIndex++;
                        else if (keyValueSeparators.indexOf(currentChar) != -1)
                            break;
                    }

                    // Skip over whitespace after key if any
                    int valueIndex;
                    for (valueIndex = separatorIndex; valueIndex < len; valueIndex++)
                        if (whiteSpaceChars.indexOf(line.charAt(valueIndex)) == -1)
                            break;

                    // Skip over one non whitespace key value separators if any
                    if (valueIndex < len)
                        if (strictKeyValueSeparators.indexOf(line.charAt(valueIndex)) != -1)
                            valueIndex++;

                            // Skip over white space after other separators if any
                    while (valueIndex < len) {
                        if (whiteSpaceChars.indexOf(line.charAt(valueIndex)) == -1)
                            break;
                        valueIndex++;
                    }
                    String key = line.substring(keyStart, separatorIndex);
                    String value = (separatorIndex < len) ? line.substring(valueIndex, len) : "";

                    // Convert then store key and value
                    key = loadConvert(key);
                    value = loadConvert(value);
                    put(key, value);
                }
            }
        }
    }

    private boolean continueLine(String line) {
        int slashCount = 0;
        int index = line.length() - 1;
        while ( (index >= 0) && (line.charAt(index--) == '\\'))
            slashCount++;
        return (slashCount % 2 == 1);
    }

    private String loadConvert(String theString) {
        char aChar;
        int len = theString.length();
        StringBuffer outBuffer = new StringBuffer(len);

        for (int x = 0; x < len; ) {
            aChar = theString.charAt(x++);
            if (aChar == '\\') {
                aChar = theString.charAt(x++);
                if (aChar == 'u') {
                    // Read the xxxx
                    int value = 0;
                    for (int i = 0; i < 4; i++) {
                        aChar = theString.charAt(x++);
                        switch (aChar) {
                            case '0':
                            case '1':
                            case '2':
                            case '3':
                            case '4':
                            case '5':
                            case '6':
                            case '7':
                            case '8':
                            case '9':
                                value = (value << 4) + aChar - '0';
                                break;
                            case 'a':
                            case 'b':
                            case 'c':
                            case 'd':
                            case 'e':
                            case 'f':
                                value = (value << 4) + 10 + aChar - 'a';
                                break;
                            case 'A':
                            case 'B':
                            case 'C':
                            case 'D':
                            case 'E':
                            case 'F':
                                value = (value << 4) + 10 + aChar - 'A';
                                break;
                            default:
                                throw new IllegalArgumentException(
                                    "Malformed \\uxxxx encoding.");
                        }
                    }
                    outBuffer.append( (char) value);
                } else {
                    if (aChar == 't')
                        aChar = '\t';
                    else if (aChar == 'r')
                        aChar = '\r';
                    else if (aChar == 'n')
                        aChar = '\n';
                    else if (aChar == 'f')
                        aChar = '\f';
                    outBuffer.append(aChar);
                }
            } else
                outBuffer.append(aChar);
        }
        return outBuffer.toString();
    }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区中文字幕| 日本久久一区二区| 久久国产精品99精品国产| 亚洲最新在线观看| 日韩欧美国产小视频| 欧美女孩性生活视频| 亚洲欧美视频在线观看| 亚洲精品国久久99热| 久久久精品tv| 精品国产一区久久| 欧美一区二区三区电影| 欧美乱熟臀69xxxxxx| 欧美视频中文字幕| 成人av在线电影| 国产精品亚洲一区二区三区妖精| 亚洲国产日韩一区二区| 国产欧美一区二区三区鸳鸯浴| 日韩欧美二区三区| 精品理论电影在线观看| 日韩欧美在线一区二区三区| 欧美疯狂性受xxxxx喷水图片| 欧美日韩一级二级三级| 在线电影院国产精品| 欧美另类z0zxhd电影| 69av一区二区三区| 日韩视频一区二区三区| 精品国产露脸精彩对白| 久久综合色8888| 久久久久久久一区| 亚洲国产精品传媒在线观看| 中文字幕av一区二区三区| 国产亚洲欧美日韩在线一区| 精品福利视频一区二区三区| 久久先锋影音av| 中文字幕在线观看不卡| 一区二区在线观看免费视频播放| 亚洲伊人色欲综合网| 日韩中文字幕一区二区三区| 久久99久久精品欧美| 国产在线视视频有精品| 成人激情免费视频| 欧美性大战久久久| 欧美大肚乱孕交hd孕妇| 欧美激情中文字幕一区二区| 综合久久综合久久| 亚洲一区二区三区精品在线| 日本vs亚洲vs韩国一区三区二区 | 成人97人人超碰人人99| 91猫先生在线| 日韩欧美国产小视频| 成人激情动漫在线观看| 色呦呦日韩精品| 欧美另类高清zo欧美| 精品国产乱码久久久久久1区2区 | 夜夜嗨av一区二区三区中文字幕| 午夜视频一区二区| 国产精品自拍一区| 欧洲精品中文字幕| 欧美tickling网站挠脚心| 中文字幕一区二区三| 日韩电影在线一区二区三区| 丁香一区二区三区| 在线电影欧美成精品| 欧美成人精品福利| 亚洲国产精品精华液ab| 韩国成人在线视频| 欧洲一区二区av| 欧美激情一区三区| 日韩av成人高清| 成人国产免费视频| 欧美日韩一二区| 亚洲永久精品国产| 不卡的av电影| 在线成人av影院| 国产精品麻豆视频| 蜜桃在线一区二区三区| 91视频观看视频| www久久精品| 天天影视色香欲综合网老头| 国产成人精品三级麻豆| 日韩欧美一区二区免费| 综合在线观看色| 国产精品自拍三区| 91精品国产乱码久久蜜臀| 国产日韩欧美亚洲| 一区二区三区四区五区视频在线观看 | 亚洲国产综合91精品麻豆| 国产精品综合二区| 日韩免费视频一区二区| 午夜精品在线视频一区| 91丨九色丨尤物| 欧美激情一区二区在线| 精品夜夜嗨av一区二区三区| 欧美亚洲一区二区在线| 国产精品国产三级国产aⅴ中文| 欧美电影精品一区二区| 亚洲小说春色综合另类电影| 成+人+亚洲+综合天堂| 精品国产乱码久久久久久免费| 午夜精品123| 国产不卡一区视频| 精品日韩欧美一区二区| 日本系列欧美系列| 欧美精品第1页| 亚洲无线码一区二区三区| 91亚洲国产成人精品一区二三| 国产欧美一区二区在线| 国产一区二区在线看| 欧美一区二区三区四区久久| 午夜伦欧美伦电影理论片| 欧美三级一区二区| 亚洲精品视频免费观看| 日韩一区国产二区欧美三区| 五月婷婷久久综合| 欧美高清视频www夜色资源网| 亚洲自拍偷拍九九九| 色偷偷一区二区三区| 亚洲免费观看高清完整版在线观看 | 亚欧色一区w666天堂| 欧美系列一区二区| 午夜视频一区二区| 欧美一区二区精品在线| 毛片一区二区三区| 精品成人私密视频| 国产成人8x视频一区二区| 日本一区二区综合亚洲| 成人黄色在线视频| 国产调教视频一区| 久久成人免费网| 久久综合九色欧美综合狠狠| 国产乱码精品一区二区三区忘忧草 | 日韩欧美黄色影院| 国产精品一区二区在线看| 国产午夜精品久久| 99久久精品免费看国产| 欧美极品aⅴ影院| 91香蕉视频黄| 午夜精品福利一区二区蜜股av | 亚洲美女视频在线| 欧美性大战xxxxx久久久| 丝袜美腿亚洲色图| 久久亚洲一区二区三区明星换脸| 国产精品18久久久久久久久久久久| 亚洲精品视频在线观看网站| 日韩精品一区二区三区视频| 99精品久久久久久| 日本aⅴ精品一区二区三区| 欧美高清一级片在线观看| 欧美片网站yy| 成人av一区二区三区| 日韩不卡一二三区| 国产精品乱码人人做人人爱| 欧美一区二区视频在线观看| 成人晚上爱看视频| 蜜臀av性久久久久av蜜臀妖精 | 国产综合色产在线精品| 亚洲综合在线第一页| 国产欧美一区二区在线观看| 欧美精品视频www在线观看 | 亚洲精品国产无天堂网2021| 精品国产乱码久久久久久免费| 在线观看亚洲精品视频| 国产精品综合二区| 日韩激情一二三区| 亚洲欧美一区二区三区极速播放| 精品国产一二三| 欧美猛男超大videosgay| 成人av网站在线观看| 久久精品噜噜噜成人88aⅴ| 亚洲精品高清视频在线观看| 久久精品亚洲国产奇米99| 制服丝袜av成人在线看| 91捆绑美女网站| 国产91富婆露脸刺激对白| 日韩经典中文字幕一区| 玉足女爽爽91| 亚洲欧洲日韩女同| 久久精品视频网| 日韩精品中文字幕在线不卡尤物| 欧美一a一片一级一片| 成人18视频日本| 国产精品一区二区久激情瑜伽 | 91福利资源站| 99久久免费精品高清特色大片| 国产麻豆一精品一av一免费| 免费在线观看成人| 视频一区二区欧美| 亚洲超碰精品一区二区| 亚洲精品日韩一| 亚洲欧美偷拍卡通变态| 亚洲欧洲成人自拍| 中文字幕一区三区| 国产精品久久久99| 中文字幕精品一区| 中文字幕 久热精品 视频在线| 精品久久久久99| 2017欧美狠狠色| 久久精品一区二区| 国产天堂亚洲国产碰碰| 国产色产综合色产在线视频 |