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

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

?? propertymanager.java

?? 這是學習Java必須讀懂兩套源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/**
 * Copyright (C) 2001 Yasna.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        Yasna.com (http://www.yasna.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Yazd" and "Yasna.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact yazd@yasna.com.
 *
 * 5. Products derived from this software may not be called "Yazd",
 *    nor may "Yazd" appear in their name, without prior written
 *    permission of Yasna.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL YASNA.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of Yasna.com. For more information
 * on Yasna.com, please see <http://www.yasna.com>.
 */

/**
 * Copyright (C) 2000 CoolServlets.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        CoolServlets.com (http://www.coolservlets.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Jive" and "CoolServlets.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact webmaster@coolservlets.com.
 *
 * 5. Products derived from this software may not be called "Jive",
 *    nor may "Jive" appear in their name, without prior written
 *    permission of CoolServlets.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL COOLSERVLETS.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CoolServlets.com. For more information
 * on CoolServlets.com, please see <http://www.coolservlets.com>.
 */

package com.Yasna.forum;

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

/**
 * Manages properties for the entire Yazd system. Properties are merely
 * pieces of information that need to be saved in between server restarts. The
 * class also reports the version of Yazd.
 * <p>
 * At the moment, properties are stored in a Java Properties file. In a version
 * of Yazd coming soon, the properties file format will move to XML. XML
 * properties will allow hierarchical property structures which may mean the
 * API of this class will have to change.
 * <p>
 * Yazd properties are only meant to be set and retrevied by core Yazd classes.
 * Therefore, skin writers should probably ignore this class.
 * <p>
 * This class is implemented as a singleton since many classloaders seem to
 * take issue with doing classpath resource loading from a static context.
 */
public class PropertyManager {

    /**
     * The Major version number of Yazd. i.e. 1.x.x
     */
    private static final int MAJOR_VERSION = 1;

    /**
     * The Minor version number of Yazd. i.e. x.1.x.
     */
    private static final int MINOR_VERSION = 0;

    /**
     * The revision version number of Yazd. i.e. x.x.1.
     */
    private static final int REVISION_VERSION = 0;

    private static PropertyManager manager = null;
    private static Object managerLock = new Object();
    private static String propsName = "/yazd.properties";

    /**
     * Returns a Yazd property.
     *
     * @param name the name of the property to return.
     * @return the property value specified by name.
     */
    public static String getProperty(String name) {
        if (manager == null) {
            synchronized(managerLock) {
                if (manager == null) {
                    manager = new PropertyManager(propsName);
                }
            }
        }
        return manager.getProp(name);
    }

    /**
     * Sets a Yazd property. If the property doesn't already exists, a new
     * one will be created.
     *
     * @param name the name of the property being set.
     * @param value the value of the property being set.
     */
    public static void setProperty(String name, String value) {
        if (manager == null) {
            synchronized(managerLock) {
                if (manager == null) {
                    manager = new PropertyManager(propsName);
                }
            }
        }
        manager.setProp(name, value);
    }

    /**
     * Deletes a Yazd property. If the property doesn't exist, the method
     * does nothing.
     *
     * @param name the name of the property to delete.
     */
    public static void deleteProperty(String name) {
        if (manager == null) {
            synchronized(managerLock) {
                if (manager == null) {
                    manager = new PropertyManager(propsName);
                }
            }
        }
        manager.deleteProp(name);
    }

    /**
     * Returns the names of the Yazd properties.
     *
     * @return an Enumeration of the Yazd property names.
     */
    public static Enumeration propertyNames() {
        if (manager == null) {
            synchronized(managerLock) {
                if (manager == null) {
                    manager = new PropertyManager(propsName);
                }
            }
        }
        return manager.propNames();
    }

    /**
     * Returns true if the properties are readable. This method is mainly
     * valuable at setup time to ensure that the properties file is setup
     * correctly.
     */
    public static boolean propertyFileIsReadable() {
        if (manager == null) {
            synchronized(managerLock) {
                if (manager == null) {
                    manager = new PropertyManager(propsName);
                }
            }
        }
        return manager.propFileIsReadable();
    }

    /**
     * Returns true if the properties are writable. This method is mainly
     * valuable at setup time to ensure that the properties file is setup
     * correctly.
     */
    public static boolean propertyFileIsWritable() {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区日韩精品绯色| 国产麻豆成人精品| 亚洲综合久久久| 亚洲私人黄色宅男| 中文在线一区二区| 国产精品亲子伦对白| 欧美国产一区在线| 中文字幕一区日韩精品欧美| 国产精品少妇自拍| 中文字幕在线视频一区| 亚洲视频一二区| 亚洲人亚洲人成电影网站色| 亚洲三级在线播放| 亚洲高清视频中文字幕| 天天色综合成人网| 日韩 欧美一区二区三区| 六月婷婷色综合| 国产大陆亚洲精品国产| 成人午夜精品在线| 99精品久久免费看蜜臀剧情介绍| 色综合久久久久久久久| 在线观看网站黄不卡| 欧美精品在欧美一区二区少妇| 欧美疯狂性受xxxxx喷水图片| 9191成人精品久久| 精品国产91洋老外米糕| 国产亚洲精品福利| 日韩一区日韩二区| 五月天激情综合网| 九九精品视频在线看| 大胆亚洲人体视频| 欧美体内she精视频| 日韩美女视频在线| 中文字幕一区二区三区在线观看 | 一区二区三区在线视频播放| 亚洲成av人在线观看| 久久99精品国产麻豆不卡| 国产高清无密码一区二区三区| 91色porny| 91精品国产综合久久蜜臀| 国产视频一区二区在线| 一区二区三区日韩欧美| 久久精品国产一区二区三区免费看| 国产成人av网站| 777奇米成人网| 国产精品福利影院| 久久超级碰视频| 色噜噜狠狠一区二区三区果冻| 欧美成人激情免费网| 一区二区三区电影在线播| 精品一区二区三区在线观看 | 亚洲精品一区二区三区福利| 国产精品国产自产拍高清av| 日本午夜精品视频在线观看| 本田岬高潮一区二区三区| 在线不卡中文字幕播放| 国产精品久久久久久久午夜片| 天天综合天天综合色| 99视频在线观看一区三区| 日韩欧美成人一区二区| 亚洲女女做受ⅹxx高潮| 国产制服丝袜一区| 欧美日韩一区二区在线视频| 国产精品人成在线观看免费| 麻豆视频观看网址久久| 欧洲精品一区二区| 国产精品美女一区二区三区| 麻豆一区二区99久久久久| 在线观看日韩电影| 亚洲欧洲日韩综合一区二区| 久久爱www久久做| 欧美日韩精品一区二区三区蜜桃| 中文字幕一区二| 国产精品资源网站| 精品日韩欧美在线| 天堂资源在线中文精品| 91丨porny丨中文| 国产日韩欧美综合一区| 久久国产日韩欧美精品| 欧美酷刑日本凌虐凌虐| 亚洲综合久久久久| 91国在线观看| 1024精品合集| 成人免费av网站| 国产午夜精品福利| 激情综合网最新| 日韩视频免费观看高清在线视频| 午夜av区久久| 欧美日韩国产一级片| 一区二区三区**美女毛片| 91麻豆123| 亚洲摸摸操操av| 91麻豆自制传媒国产之光| 中文字幕乱码亚洲精品一区| 国产成人综合网| 久久蜜臀中文字幕| 国产黄色成人av| 国产色91在线| 国产精品88888| 日本一区二区视频在线观看| 国产99久久久国产精品| 国产精品无遮挡| 成人开心网精品视频| 中文字幕第一区综合| 成人不卡免费av| 亚洲色图另类专区| 在线视频中文字幕一区二区| 一区二区三区加勒比av| 欧美日韩国产另类一区| 日韩av电影天堂| 精品少妇一区二区三区在线视频| 精品伊人久久久久7777人| 久久影视一区二区| 成人免费黄色在线| 亚洲黄色免费网站| 欧美人与z0zoxxxx视频| 免费在线观看不卡| 久久九九99视频| 99re成人在线| 亚洲国产日日夜夜| 欧美一区二区三区男人的天堂| 久久精品国产精品亚洲精品| 久久伊人中文字幕| 色综合一个色综合亚洲| 亚洲图片欧美视频| 欧美电影免费观看高清完整版| 国产一区二区女| 中文字幕人成不卡一区| 欧美专区在线观看一区| 男女男精品网站| 欧美激情在线免费观看| 在线影院国内精品| 九色综合狠狠综合久久| 一区二区中文字幕在线| 欧美精品黑人性xxxx| 国产成人免费在线观看不卡| 亚洲综合视频在线观看| 日韩一区二区影院| 丁香婷婷综合五月| 亚洲国产精品久久久久婷婷884 | 色婷婷亚洲精品| 免费看欧美女人艹b| 久久一区二区视频| 在线观看区一区二| 国产在线一区二区| 亚洲精品一二三区| 亚洲精品一区二区三区四区高清| 91毛片在线观看| 精品在线免费视频| 亚洲乱码中文字幕综合| 日韩精品综合一本久道在线视频| 成人激情免费视频| 日韩精品1区2区3区| 国产精品久久三区| 日韩欧美一区在线观看| 色综合天天综合在线视频| 麻豆成人91精品二区三区| 亚洲视频一区二区在线观看| 精品噜噜噜噜久久久久久久久试看| 99久久国产免费看| 韩国精品在线观看| 亚洲va在线va天堂| 中文字幕在线不卡| 精品国产污网站| 欧美日韩国产免费| 99精品热视频| 国产精品香蕉一区二区三区| 日本免费新一区视频 | 99精品国产热久久91蜜凸| 麻豆精品在线看| 亚洲精品国产精华液| 国产丝袜欧美中文另类| 91精品国产一区二区人妖| 一本一本大道香蕉久在线精品| 久久99国产精品免费| 午夜精品在线看| 亚洲精品亚洲人成人网| 国产精品水嫩水嫩| 精品av久久707| 日韩一区二区影院| 欧美日产在线观看| 欧美在线一二三| 91在线观看视频| 成人爽a毛片一区二区免费| 久久av资源网| 视频一区二区欧美| 亚洲日本护士毛茸茸| 国产精品久久久久久久久图文区 | 久久精品国产一区二区| 午夜私人影院久久久久| 一区二区三区四区在线免费观看 | 国产在线国偷精品产拍免费yy| 午夜精品久久久久久久久久久| 一片黄亚洲嫩模| 亚洲乱码日产精品bd| 自拍偷拍国产亚洲| 欧美极品另类videosde| 国产日韩欧美a| 久久精品亚洲乱码伦伦中文| 久久久国产午夜精品|