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

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

?? jtpresource.java

?? java繪圖方面的源碼 運(yùn)行前先將 run1_3.bat中的SET JDK13=D:JBuilder7jdk1.3.1 或 run1_4.bat中的SET JDK14=D:JBuilde
?? JAVA
字號:
package com.sunking.tp.util;

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

/**
 * <p>Title: JTPResource</p>
 * <p>Description: 資源調(diào)入,運(yùn)行此類可以將手寫的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);
            //簡體中文
            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);
            //日語
            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();
    }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费看黄网站| 国产sm精品调教视频网站| 亚洲综合图片区| 亚洲女同女同女同女同女同69| 国产精品久线观看视频| 中文字幕av一区二区三区高| 久久久无码精品亚洲日韩按摩| 2024国产精品| 国产夜色精品一区二区av| 国产日韩欧美不卡在线| 欧美激情综合网| 1024亚洲合集| 亚洲第四色夜色| 蜜臀av在线播放一区二区三区| 麻豆精品久久久| 国产精品综合一区二区| 成人做爰69片免费看网站| 91小视频在线免费看| 欧美日韩一级二级| 欧美成人精品福利| 久久蜜桃av一区二区天堂 | 国产亚洲欧美日韩日本| 国产精品成人一区二区三区夜夜夜| 亚洲女同女同女同女同女同69| 亚洲国产一区二区在线播放| 免费人成黄页网站在线一区二区| 激情欧美日韩一区二区| 成人午夜在线免费| 在线观看日韩一区| 精品久久久久久久久久久久久久久久久| 精品日韩欧美在线| 国产精品高潮呻吟| 亚洲www啪成人一区二区麻豆 | 91黄色激情网站| 宅男噜噜噜66一区二区66| 欧美精品一区二区久久久| 国产精品黄色在线观看| 亚洲无人区一区| 国产一区二区影院| 日本久久电影网| 欧美va天堂va视频va在线| 中文字幕亚洲区| 免费成人美女在线观看| caoporn国产精品| 欧美一区二区美女| 国产精品成人免费| 日产国产欧美视频一区精品| 国产超碰在线一区| 5566中文字幕一区二区电影| 中文成人av在线| 日韩av一区二区三区| 成人动漫一区二区| 欧美一区二区三区不卡| 《视频一区视频二区| 久久不见久久见免费视频1| 色婷婷激情久久| 久久精品免费在线观看| 视频一区中文字幕| 99re这里都是精品| 亚洲精品在线观看视频| 亚洲成人动漫在线观看| 高清不卡在线观看av| 欧美一区二区在线免费观看| 亚洲丝袜精品丝袜在线| 激情成人午夜视频| 欧美精品电影在线播放| 亚洲精品美腿丝袜| 成人性生交大片免费看中文网站| 91精品国产免费| 亚洲影视资源网| 成人av网站免费| 久久精品亚洲精品国产欧美kt∨| 天天做天天摸天天爽国产一区| 99久久精品国产导航| 国产日韩影视精品| 国产在线精品视频| 日韩精品一区国产麻豆| 国产精品综合视频| 国产成人aaa| 99精品久久99久久久久| 精品一区二区三区在线播放| 中文字幕在线观看一区二区| 色中色一区二区| 亚洲综合在线观看视频| 777奇米成人网| 91精品国产福利| 色婷婷精品久久二区二区蜜臂av| 日一区二区三区| 成人黄色777网| 欧美v日韩v国产v| 蜜臀av性久久久久蜜臀aⅴ| 91麻豆视频网站| 欧美成人精品3d动漫h| 婷婷成人激情在线网| 7777精品伊人久久久大香线蕉| 日本成人在线视频网站| 日韩欧美在线123| 欧美性生活影院| 国产精品一区二区久久不卡| 日本伊人午夜精品| 中文字幕在线观看不卡| 91精品国产全国免费观看| 捆绑紧缚一区二区三区视频| 久久久久国产精品人| 成人毛片视频在线观看| 一区二区久久久久| youjizz久久| 午夜国产精品一区| 中文字幕一区二区三区在线观看| 国产91精品一区二区麻豆网站 | 亚洲欧洲精品一区二区精品久久久 | 亚洲国产欧美另类丝袜| 欧美美女一区二区在线观看| 亚洲综合色丁香婷婷六月图片| 日韩一区二区三区电影| 日韩欧美电影在线| 成人理论电影网| 亚洲第一搞黄网站| 中文字幕不卡三区| 26uuu久久综合| 91国产成人在线| 欧美亚洲图片小说| 在线看国产一区二区| 成人av网站在线观看免费| 91无套直看片红桃| 精品久久免费看| 狠狠色综合日日| 国产精品伦一区二区三级视频| proumb性欧美在线观看| 国产欧美一区二区三区鸳鸯浴 | 国产又粗又猛又爽又黄91精品| 久久免费精品国产久精品久久久久 | 日本一区中文字幕| 欧美成人乱码一区二区三区| 成人爽a毛片一区二区免费| 亚洲欧美一区二区在线观看| 亚洲777理论| 精品一区二区国语对白| 青青草97国产精品免费观看 | 蜜桃视频在线一区| 26uuu久久天堂性欧美| bt7086福利一区国产| 亚洲成人精品一区二区| 精品国产免费一区二区三区香蕉| 成人小视频免费观看| 亚洲aaa精品| 亚洲国产高清不卡| 欧美欧美午夜aⅴ在线观看| 国产精品白丝jk白祙喷水网站| 一区二区三区国产| 久久久久久日产精品| 欧日韩精品视频| 亚洲蜜臀av乱码久久精品| www.一区二区| 日韩和欧美一区二区三区| 国产视频视频一区| 欧美精品欧美精品系列| 成人小视频免费观看| 五月婷婷激情综合网| 亚洲国产高清不卡| 日韩一区二区三区电影在线观看 | 亚洲激情中文1区| 欧美成人官网二区| 91在线国内视频| 蜜臀av一级做a爰片久久| 亚洲男同性视频| 久久精品视频免费观看| 欧美日韩在线免费视频| eeuss鲁片一区二区三区| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产日韩三级在线| 欧美三级中文字| 青青草国产成人99久久| 欧美日韩国产综合视频在线观看| 欧美国产精品一区二区三区| 奇米精品一区二区三区在线观看| 国产成人精品影视| 欧美日韩高清在线播放| 国产校园另类小说区| 老汉av免费一区二区三区| 成人免费看黄yyy456| 在线视频一区二区免费| 精品久久久久久最新网址| 日本系列欧美系列| 亚洲欧美偷拍三级| 久久影院电视剧免费观看| 欧美日韩国产成人在线免费| 91在线免费播放| 成人性视频网站| 国产精品自在欧美一区| 精品一二三四在线| 日本不卡一区二区| 亚洲电影一区二区三区| 亚洲美女精品一区| 亚洲三级免费电影| 日本一区二区三区高清不卡| 亚洲精品一区二区三区影院| 日韩视频免费直播| 91精品国产综合久久小美女| 欧美日韩免费视频|