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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bundlehandler.java

?? 用JAVA實現了,將DB裝入內存,內存由DBMS控制,實現簡單數據庫的創建、數據表的創建、記錄插入、查詢以及表的刪除。
?? JAVA
字號:
package org.kdb.util;

import java.lang.reflect.Method;
import java.util.*;

/**

 * Date: 2007-11-5
 * Time: 9:26:01
 */
public class BundleHandler {
    /**
     * Used to synchronize access
     */
    private static final Object mutex = new Object();

    /**
     * The Locale used internally to fetch resource bundles.
     */
    private static Locale locale = Locale.getDefault();

    /**
     * Map:  Integer object handle => <code>ResourceBundle</code> object.
     */
    private static HashMap bundleHandleMap = new HashMap();

    /**
     * List whose elements are <code>ResourceBundle</code> objects
     */
    private static ArrayList bundleList = new ArrayList();

    /**
     * The resource path prefix of the <code>ResourceBundle</code> objects
     * handled by this class.
     */
    private static final String prefix = "org/kdb/util/";

    /**
     * JDK 1.1 compliance
     */
    private static final Method newGetBundleMethod = getNewGetBundleMethod();

    /**
     * Pure utility class: external construction disabled.
     */
    private BundleHandler() {
    }

    /**
     * Getter for property locale. <p>
     *
     * @return Value of property locale.
     */
    public static Locale getLocale() {

        synchronized (mutex) {
            return locale;
        }
    }

    /**
     * Setter for property locale. <p>
     *
     * @param l the new locale
     * @throws IllegalArgumentException when the new locale is null
     */
    public static void setLocale(Locale l) throws IllegalArgumentException {

        synchronized (mutex) {
            if (l == null) {
                throw new IllegalArgumentException("null locale");
            }

            locale = l;
        }
    }

    /**
     * Retrieves an <code>int</code> handle to the <code>ResourceBundle</code>
     * object corresponding to the specified name and current
     * <code>Locale</code>, using the specified <code>ClassLoader</code>. <p>
     *
     * @param cl   The ClassLoader to use in the search
     * @param name of the desired bundle
     * @return <code>int</code> handle to the <code>ResourceBundle</code>
     *         object corresponding to the specified name and
     *         current <code>Locale</code>, or -1 if no such bundle
     *         can be found
     */
    public static int getBundleHandle(String name, ClassLoader cl) {

        Integer bundleHandle;
        ResourceBundle bundle;
        String bundleName;
        String bundleKey;

        bundleName = prefix + name;

        synchronized (mutex) {
            bundleKey = locale.toString() + bundleName;
            bundleHandle = (Integer) bundleHandleMap.get(bundleKey);

            if (bundleHandle == null) {
                try {
                    bundle = getBundle(bundleName, locale, cl);

                    bundleList.add(bundle);

                    bundleHandle = new Integer(bundleList.size() - 1);

                    bundleHandleMap.put(bundleKey, bundleHandle);
                } catch (Exception e) {

                    //e.printStackTrace();
                }
            }
        }

        return bundleHandle == null ? -1
                : bundleHandle.intValue();
    }

    /**
     * Retrieves, from the <code>ResourceBundle</code> object corresponding
     * to the specified handle, the <code>String</code> value corresponding
     * to the specified key.  <code>null</code> is retrieved if either there
     * is no <code>ResourceBundle</code> object for the handle or there is no
     * <code>String</code> value for the specified key. <p>
     *
     * @param handle an <code>int</code> handle to a
     *               <code>ResourceBundle</code> object
     * @param key    A <code>String</code> key to a <code>String</code> value
     * @return The String value correspoding to the specified handle and key.
     */
    public static String getString(int handle, String key) {

        ResourceBundle bundle;
        String s;

        synchronized (mutex) {
            if (handle < 0 || handle >= bundleList.size() || key == null) {
                bundle = null;
            } else {
                bundle = (ResourceBundle) bundleList.get(handle);
            }
        }

        if (bundle == null) {
            s = null;
        } else {
            try {
                s = bundle.getString(key);
            } catch (Exception e) {
                s = null;
            }
        }

        return s;
    }

    /**
     * One-shot initialization of JDK 1.2+ ResourceBundle.getBundle() method
     * having ClassLoader in the signature.
     */
    private static Method getNewGetBundleMethod() {

        Class clazz;
        Class[] args;

        clazz = ResourceBundle.class;
        args = new Class[]{
                String.class, Locale.class, ClassLoader.class
        };

        try {
            return clazz.getMethod("getBundle", args);
        } catch (Exception e) {
            return null;
        }
    }

    /**
     * Retrieves a resource bundle using the specified base name, locale, and
     * class loader. This is a JDK 1.1 compliant substitution for the
     * ResourceBundle method with the same name and signature. If there
     * is a problem using the JDK 1.2 functionality (the class loader is
     * specified non-null and the underlying method is not available or there
     * is a security exception, etc.), then the behaviour reverts to that
     * of JDK 1.1.
     *
     * @param name   the base name of the resource bundle, a fully
     *               qualified class name
     * @param locale the locale for which a resource bundle is desired
     * @param cl     the class loader from which to load the resource bundle
     */
    public static ResourceBundle getBundle(String name, Locale locale,
                                           ClassLoader cl)
            throws NullPointerException,
            MissingResourceException {

        if (cl == null) {
            return ResourceBundle.getBundle(name, locale);
        } else if (newGetBundleMethod == null) {
            return ResourceBundle.getBundle(name, locale);
        } else {
            try {
                return (ResourceBundle) newGetBundleMethod.invoke(null,
                        new Object[]{
                                name, locale, cl
                        });
            } catch (Exception e) {
                return ResourceBundle.getBundle(name, locale);
            }
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美女久久久久aⅴ国产馆| 色婷婷av久久久久久久| 精品国产成人在线影院| 蜜桃视频第一区免费观看| 欧美精品久久一区| 精品在线免费观看| 久久天天做天天爱综合色| 国产suv精品一区二区三区| 国产精品女同互慰在线看| 99re这里只有精品首页| 亚洲一区二区高清| 日韩一区二区在线免费观看| 精品一区二区三区久久久| 国产欧美精品一区| 一本久久a久久免费精品不卡| 亚洲主播在线播放| 精品人在线二区三区| 成人激情黄色小说| 图片区小说区国产精品视频| 精品人在线二区三区| av在线这里只有精品| 日韩av午夜在线观看| 国产午夜精品一区二区三区四区| 一本色道久久综合精品竹菊| 热久久国产精品| 欧美韩日一区二区三区| 欧美日韩第一区日日骚| 国产成人av一区二区三区在线| 亚洲老司机在线| 日韩欧美一区二区免费| 99天天综合性| 久久国产精品色| 亚洲伊人色欲综合网| 国产亚洲欧洲997久久综合| 在线亚洲一区二区| 国产乱子伦视频一区二区三区 | 岛国一区二区三区| 亚洲亚洲精品在线观看| 国产无遮挡一区二区三区毛片日本 | 欧美精品一区二区不卡| 色综合天天综合网天天看片| 久久精品99国产精品| 一区二区三区四区高清精品免费观看 | 日韩成人一区二区三区在线观看| 日本一二三四高清不卡| 欧美大片在线观看| 欧美天天综合网| 99久久精品国产麻豆演员表| 国内精品不卡在线| 视频在线观看一区| 一区二区三区欧美亚洲| 国产精品毛片无遮挡高清| 精品国产制服丝袜高跟| 欧美一区二区三区不卡| 欧美日韩精品二区第二页| va亚洲va日韩不卡在线观看| 精品一区二区三区免费播放| 日韩二区三区在线观看| 一区二区免费视频| 椎名由奈av一区二区三区| 国产欧美综合在线观看第十页 | 欧美综合一区二区| kk眼镜猥琐国模调教系列一区二区 | 国产自产v一区二区三区c| 日本在线不卡视频一二三区| 亚洲国产精品久久久久婷婷884 | 日韩成人精品视频| 天堂一区二区在线| 日韩高清国产一区在线| 无码av中文一区二区三区桃花岛| 亚洲自拍偷拍九九九| 一区二区三区免费看视频| 亚洲欧美欧美一区二区三区| 国产精品美女一区二区三区| 中文在线免费一区三区高中清不卡| 2024国产精品| 久久精品欧美日韩精品| 久久午夜国产精品| 国产欧美久久久精品影院| 久久久电影一区二区三区| 久久久99精品免费观看不卡| 久久综合网色—综合色88| 欧美精品一区二区高清在线观看| 欧美tickling网站挠脚心| 精品国精品国产尤物美女| 久久午夜电影网| 中文字幕一区二区三区在线不卡| 一区精品在线播放| 亚洲综合小说图片| 男女性色大片免费观看一区二区 | 麻豆专区一区二区三区四区五区| 裸体一区二区三区| 国产一区久久久| 波多野结衣亚洲一区| 色婷婷综合久久久中文一区二区| 欧美午夜精品一区二区蜜桃| 欧美欧美欧美欧美| 久久亚洲影视婷婷| 国产精品免费av| 亚洲18女电影在线观看| 婷婷久久综合九色综合伊人色| 亚洲高清在线视频| 亚洲午夜影视影院在线观看| 午夜精品一区二区三区电影天堂 | 2020日本不卡一区二区视频| 亚洲国产精品av| 亚洲综合视频网| 麻豆91免费看| www.66久久| 7777精品伊人久久久大香线蕉经典版下载 | 99在线精品观看| 欧美男女性生活在线直播观看| 精品免费视频一区二区| 国产精品二区一区二区aⅴ污介绍| 亚洲欧美另类久久久精品| 视频一区二区三区在线| 国产精品1区2区| 欧美在线免费视屏| 久久久久久99久久久精品网站| 自拍偷拍亚洲综合| 麻豆91小视频| 91在线播放网址| 日韩欧美成人激情| 一区二区三国产精华液| 国产永久精品大片wwwapp| 在线观看日韩电影| 中文字幕欧美日本乱码一线二线| 亚洲一卡二卡三卡四卡| 国产成人亚洲精品青草天美| 欧美在线999| 中文一区二区在线观看| 美女视频一区二区| 欧美午夜电影一区| 日本一区二区动态图| 蜜桃av噜噜一区| 欧美亚洲一区二区三区四区| 欧美国产日韩a欧美在线观看| 丝袜亚洲另类欧美综合| 97se亚洲国产综合自在线观| 日韩精品一区二区三区四区视频 | 日韩小视频在线观看专区| 亚洲色图丝袜美腿| 国产成人在线视频网站| 欧美肥妇毛茸茸| 亚洲激情在线激情| 北条麻妃一区二区三区| 久久嫩草精品久久久久| 久久精品99久久久| 制服丝袜亚洲精品中文字幕| 亚洲激情图片qvod| 9色porny自拍视频一区二区| 久久精子c满五个校花| 毛片基地黄久久久久久天堂| 91精品国产一区二区三区| 亚洲图片欧美综合| 91色在线porny| 中文字幕一区二| 成人性生交大片免费看中文网站| 精品免费视频一区二区| 久久se这里有精品| 日韩一区二区三区精品视频| 日本视频中文字幕一区二区三区| 欧美日韩一区二区三区在线| 亚洲欧美另类久久久精品| 99国产欧美久久久精品| 亚洲人成亚洲人成在线观看图片| a在线欧美一区| 亚洲视频一二三区| 99国产麻豆精品| 成人免费在线视频| 一本色道综合亚洲| 亚洲在线中文字幕| 欧美色图免费看| 午夜精品久久久久久久久| 欧美日本在线看| 久久精品免费看| 精品粉嫩aⅴ一区二区三区四区| 麻豆成人av在线| 久久久精品综合| 成人免费看视频| 亚洲裸体在线观看| 欧美三区在线视频| 日本亚洲欧美天堂免费| 日韩欧美国产麻豆| 国产曰批免费观看久久久| 国产精品乱人伦| 色婷婷综合久久久久中文一区二区 | 欧美日韩国产首页| 日韩电影免费在线观看网站| 欧美精品一区二区在线观看| 国产九色sp调教91| 国产精品美女久久久久久久| 91久久精品一区二区三| 日本中文字幕一区| 国产拍揄自揄精品视频麻豆| 日本电影欧美片| 免费日韩伦理电影| 国产精品久久久久影院| 欧美日本精品一区二区三区| 国产在线一区二区综合免费视频|