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

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

?? propertiesconfiguration.java

?? java servlet著名論壇源代碼
?? JAVA
字號(hào):
package net.myvietnam.mvncore.configuration;

/* ====================================================================
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
 * reserved.
 *
 * 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 acknowledgement:
 *       "This product includes software developed by the
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowledgement may appear in the software itself,
 *    if and wherever such third-party acknowledgements normally appear.
 *
 * 4. The names "The Jakarta Project", "Commons", and "Apache Software
 *    Foundation" must not be used to endorse or promote products derived
 *    from this software without prior written permission. For written
 *    permission, please contact apache@apache.org.
 *
 * 5. Products derived from this software may not be called "Apache"
 *    nor may "Apache" appear in their names without prior written
 *    permission of the Apache Software Foundation.
 *
 * 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 THE APACHE SOFTWARE FOUNDATION 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 the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 */

import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.apache.commons.lang.StringUtils;

/**
 * This is the "classic" Properties loader which loads the values from
 * a single or multiple files (which can be chained with "include =".
 * All given path references are either absolute or relative to the
 * file name supplied in the Constructor.
 * <p>
 * In this class, empty PropertyConfigurations can be built, properties
 * added and later saved. include statements are (obviously) not supported
 * if you don't construct a PropertyConfiguration from a file.
 * <p>
 * If you want to use the getResourceAsStream() trick to load your
 * resources without an absolute path, please take a look at the
 * ClassPropertiesConfiguration which is intended to be used for this.
 *
 * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
 * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
 * @author <a href="mailto:daveb@miceda-data">Dave Bryson</a>
 * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
 * @author <a href="mailto:leon@opticode.co.za">Leon Messerschmidt</a>
 * @author <a href="mailto:kjohnson@transparent.com">Kent Johnson</a>
 * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
 * @author <a href="mailto:ipriha@surfeu.fi">Ilkka Priha</a>
 * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
 * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>
 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
 * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
 * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
 * @version $Id: PropertiesConfiguration.java,v 1.1 2003/12/09 08:25:30 huumai Exp $
 */
public class PropertiesConfiguration
        extends BasePropertiesConfiguration
        implements Configuration
{
    /** Static logger */
    Log log = LogFactory.getLog(PropertiesConfiguration.class);

    /** File separator. */
    protected String fileSeparator = System.getProperty("file.separator");

    /**
     * The name of the file to be loaded.  This is used in conjuction with
     * the load method. */
    protected String fileName = null;

    /**
     * Creates an empty PropertyConfiguration object which can be
     * used to synthesize a new Properties file by adding values and
     * then saving(). An object constructed by this C'tor can not be
     * tickled into loading included files because it cannot supply a
     * base for relative includes.
     */
    public PropertiesConfiguration()
    {
        setIncludesAllowed(false);
    }

    /**
     * Creates an empty PropertyConfiguration object with
     * a Super-Object which is queries for every key.
     *
     * @param defaults Configuration defaults to use if key not in file
     * @throws IOException Error while loading the properties file
     */
    public PropertiesConfiguration(Configuration defaults) throws IOException
    {
        this();
        this.defaults = defaults;
    }

    /**
     * Creates and loads the extended properties from the specified file.
     * The specified file can contain "include = " properties which then
     * are loaded and merged into the properties.
     *
     * @param fileName The name of the Properties File to load.
     * @throws IOException Error while loading the properties file
     */
    public PropertiesConfiguration(String fileName) throws IOException
    {

        load(fileName);
    }

    /**
     * Load the properties from the fileName set by setFileName
     *
     * @throws IOException
     */
    public void load() throws IOException
    {
        load(getFileName());
    }

    /**
     * Load the properties from the given fileName
     *
     * @param fileName A properties file to load
     * @throws IOException
     */
    public void load(String fileName) throws IOException
    {
        load(getPropertyStream(fileName));
    }

    /**
     * Creates and loads the extended properties from the specified file.
     *
     * @param file The name of the Properties File to load.
     * @param defaults Configuration defaults to use if key not in file
     * @throws IOException Error while loading the properties file
     */
    public PropertiesConfiguration(String file, Configuration defaults) throws IOException
    {
        this(file);
        this.defaults = defaults;
    }

    /**
     * Creates and loads the extended properties from the specified file.
     *
     * @param file The name of the Properties File to load.
     * @param defaultFile The name of a properties file whose values
     *                    should be used if a key is not in the file.
     * @throws IOException Error while loading the properties file
     */
    public PropertiesConfiguration(String file, String defaultFile) throws IOException
    {
        this(file);
        if (StringUtils.isNotEmpty(defaultFile))
        {
            this.defaults = new PropertiesConfiguration(defaultFile);
        }
    }

    /**
     * Gets a resource relative to the supplied base path. If the passed in
     * resource name is absolute, it is used directly.
     *
     * @param resourceName The resource Name
     * @return An Input Stream
     * @throws IOException Error while loading the properties file
     */
    public InputStream getPropertyStream(String resourceName) throws IOException
    {
        InputStream resource = null;
        URL url = null;

        try
        {
            url = ConfigurationUtils.getURL(getBasePath(), resourceName);
        }  /* try */
        catch(MalformedURLException uex)
        {
            throw new IOException("Cannot obtain URL for resource "
            + resourceName);
        }  /* catch */

        resource = url.openStream();

        setBasePath(url.toString());
        setIncludesAllowed(true);

        return resource;
    }

    /**
     * Returns the fileName.
     * @return String
     */
    public String getFileName()
    {
        return fileName;
    }

    /**
     * Sets the fileName.
     * @param fileName The fileName to set
     */
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    /**
     * Extend the setBasePath method to turn includes
     * on and off based on the existence of a base path.
     *
     * @param basePath The new basePath to set.
     */
    public void setBasePath(String basePath)
    {
        super.setBasePath(basePath);
        setIncludesAllowed(StringUtils.isNotEmpty(basePath));
    }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区四区在线免费观看 | 久久久电影一区二区三区| 国产精品996| 亚洲国产美女搞黄色| 久久精品亚洲一区二区三区浴池| 日本韩国欧美国产| 国产成人免费xxxxxxxx| 日韩黄色在线观看| 国产精品久久久久久久岛一牛影视 | 国产清纯在线一区二区www| 欧美日韩精品福利| 9人人澡人人爽人人精品| 麻豆精品蜜桃视频网站| 午夜精品成人在线| 一区二区三区不卡在线观看| 国产精品欧美久久久久一区二区| 欧美大尺度电影在线| 欧美日韩国产美女| 在线观看国产精品网站| 成人av手机在线观看| 国产精品一区专区| 激情综合网av| 久久狠狠亚洲综合| 日本女人一区二区三区| 亚洲777理论| 亚洲成人激情综合网| 一区二区欧美视频| 亚洲在线视频一区| 亚洲一区二区视频在线观看| 中文字幕一区二区不卡| 国产三级一区二区三区| 久久人人爽爽爽人久久久| 日韩美女在线视频| 久久综合色8888| 久久九九国产精品| 国产欧美精品在线观看| 国产亚洲一区二区三区四区 | 亚洲国产电影在线观看| 国产亚洲自拍一区| 国产精品久久久久一区| 中文字幕欧美日韩一区| 国产午夜精品理论片a级大结局| 日韩精品一二三四| 蜜臀久久99精品久久久久久9| 日韩国产在线观看一区| 亚洲国产成人tv| 欧美国产乱子伦 | 亚洲成av人综合在线观看| 成人欧美一区二区三区| 久久久精品人体av艺术| 久久综合九色综合97婷婷 | 色综合亚洲欧洲| 99re成人精品视频| 日本韩国一区二区三区| 欧美性生活大片视频| 777色狠狠一区二区三区| 欧美电影影音先锋| 26uuu成人网一区二区三区| 精品国产一区二区三区四区四| 久久亚洲欧美国产精品乐播| 日韩女优av电影| 中文字幕免费一区| 国产精品久久久久久久蜜臀| 一区二区三区在线免费播放| 亚洲成人精品一区二区| 亚洲四区在线观看| 一区二区三区国产豹纹内裤在线| 日韩精品一区第一页| 免费的国产精品| 99免费精品视频| 欧美色精品在线视频| 日韩免费观看高清完整版| 久久人人超碰精品| 亚洲美女免费在线| 亚洲成人中文在线| 国产精品一区在线观看你懂的| 成人免费视频caoporn| 欧美日韩免费视频| 欧美v国产在线一区二区三区| 国产精品久线观看视频| 亚洲夂夂婷婷色拍ww47| 国产精品一区二区三区网站| 91亚洲精品久久久蜜桃网站| 69精品人人人人| 久久精品亚洲精品国产欧美| 亚洲国产另类av| 久久99精品国产麻豆婷婷洗澡| 不卡在线观看av| 制服丝袜日韩国产| 亚洲免费在线视频| 乱中年女人伦av一区二区| 色偷偷成人一区二区三区91| 日韩亚洲欧美成人一区| 亚洲精品网站在线观看| 麻豆精品一二三| 欧美视频在线播放| 久久久久99精品一区| 国产精品成人免费| 美女一区二区三区| 一本大道久久a久久精品综合| 日韩欧美一级精品久久| 中文字幕一区二区三区av| 韩国一区二区视频| 在线免费观看视频一区| 国产精品美女久久久久久久久| 香蕉加勒比综合久久| 91一区二区在线观看| 精品久久久久久久久久久久久久久 | 欧美视频一二三区| 国产欧美日韩精品一区| 久久精品国产一区二区| 欧美丰满美乳xxx高潮www| 一区二区三区四区中文字幕| 国产精品正在播放| 日韩精品一区二区三区在线播放| 亚洲欧美在线观看| 成人久久久精品乱码一区二区三区 | 成人小视频免费在线观看| 欧美日韩中文一区| 一区二区免费在线播放| 成人永久aaa| 欧美激情一区二区| 日产国产欧美视频一区精品| 欧美片在线播放| 亚洲自拍偷拍麻豆| 色综合婷婷久久| 国产精品久久毛片av大全日韩| 国产乱人伦偷精品视频不卡 | 日本不卡视频一二三区| 91麻豆国产精品久久| 亚洲天堂成人网| 盗摄精品av一区二区三区| 亚洲国产精品成人综合| 国产美女精品人人做人人爽| 欧美videos中文字幕| 青青草国产精品亚洲专区无| 91精品国产一区二区三区 | 亚洲一级二级在线| 91污片在线观看| 亚洲精品v日韩精品| 日本一区二区三区电影| 国产不卡视频一区| 久久看人人爽人人| 国产iv一区二区三区| 国产精品免费久久| 国产毛片精品视频| 国产精品视频一区二区三区不卡 | 欧美午夜不卡在线观看免费| 国产精品欧美综合在线| 国产一区二区三区黄视频| 久久久久久久国产精品影院| 狠狠狠色丁香婷婷综合久久五月| 欧美va日韩va| 国产美女在线精品| 国产精品美女视频| 欧美三级蜜桃2在线观看| 亚洲一区二区三区影院| 日韩视频一区二区三区 | 蜜桃视频在线一区| 欧美一级夜夜爽| 国产一区免费电影| 国产欧美日韩视频在线观看| 91在线高清观看| 亚洲高清不卡在线观看| 日韩精品一区二区三区在线播放| 久久97超碰色| 国产精品久久夜| 91福利视频在线| 国内精品不卡在线| 中文字幕欧美区| 7777女厕盗摄久久久| 免费视频最近日韩| 国产精品女同互慰在线看 | 日韩免费观看高清完整版 | 成人18视频日本| 日日摸夜夜添夜夜添亚洲女人| 日韩三级中文字幕| 国产高清精品网站| 亚洲人成在线播放网站岛国| 69堂亚洲精品首页| 国内不卡的二区三区中文字幕| 中文字幕日韩欧美一区二区三区| 在线欧美一区二区| 国内外成人在线| 午夜精品爽啪视频| 久久日一线二线三线suv| 欧美色综合影院| 狠狠久久亚洲欧美| 婷婷夜色潮精品综合在线| 久久人人97超碰com| 欧美日本免费一区二区三区| 国产精品一区在线| 亚洲成a人v欧美综合天堂下载| 欧美韩日一区二区三区四区| 色噜噜狠狠成人中文综合| 国产一区二区三区四区在线观看| 亚洲精选视频在线| 中文欧美字幕免费| 7777精品久久久大香线蕉| 91免费观看在线|