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

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

?? hierarchicalconfigurationxmlreader.java

?? 解觖java技術中后臺無法上傳數給的情況
?? JAVA
字號:
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 net.myvietnam.mvncore.configuration.HierarchicalConfiguration.*;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;

/**
 * <p>A specialized SAX2 XML parser that "parses" hierarchical
 * configuration objects.</p>
 * <p>This class mimics to be a SAX conform XML parser. Instead of parsing
 * XML documents it processes a <code>Configuration</code> object and
 * generates SAX events for the single properties defined there. This enables
 * the whole world of XML processing for configuration objects.</p>
 * <p>The <code>HierarchicalConfiguration</code> object to be parsed can be
 * specified using a constructor or the <code>setConfiguration()</code> method.
 * This object will be processed by the <code>parse()</code> methods. Note
 * that these methods ignore their argument.</p>
 *
 * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
 * @version $Id: HierarchicalConfigurationXMLReader.java,v 1.1 2003/12/09 08:25:30 huumai Exp $
 */
public class HierarchicalConfigurationXMLReader
extends ConfigurationXMLReader
{
    /** Stores the configuration object to be parsed.*/
    private HierarchicalConfiguration configuration;

    /**
     * Creates a new instance of
     * <code>HierarchicalConfigurationXMLReader</code>.
     */
    public HierarchicalConfigurationXMLReader()
    {
        super();
    }

    /**
     * Creates a new instance of
     * <code>HierarchicalConfigurationXMLReader</code> and sets the
     * configuration to be parsed.
     * @param config the configuration object
     */
    public HierarchicalConfigurationXMLReader(
    HierarchicalConfiguration config)
    {
        this();
        setConfiguration(config);
    }

    /**
     * Returns the configuration object to be parsed.
     * @return the configuration object to be parsed
     */
    public HierarchicalConfiguration getConfiguration()
    {
        return configuration;
    }

    /**
     * Sets the configuration object to be parsed.
     * @param config the configuration object to be parsed
     */
    public void setConfiguration(HierarchicalConfiguration config)
    {
        configuration = config;
    }

    /**
     * Returns the configuration object to be processed.
     * @return the actual configuration object
     */
    public Configuration getParsedConfiguration()
    {
        return getConfiguration();
    }

    /**
     * Processes the actual configuration object to generate SAX parsing
     * events.
     * @throws IOException if no configuration has been specified
     * @throws SAXException if an error occurs during parsing
     */
    protected void processKeys() throws IOException, SAXException
    {
        getConfiguration().getRoot().visit(new SAXVisitor(), null);
    }

    /**
     * A specialized visitor class for generating SAX events for a
     * hierarchical node structure.
     *
     * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
     */
    class SAXVisitor extends HierarchicalConfiguration.NodeVisitor
    {
        /** Constant for the attribute type.*/
        private static final String ATTR_TYPE = "CDATA";

        /**
         * Visits the specified node after its children have been processed.
         * @param node the actual node
         * @param key the key of this node
         */
        public void visitAfterChildren(Node node, ConfigurationKey key)
        {
            if(!isAttributeNode(node))
            {
                fireElementEnd(nodeName(node));
            }  /* if */
        }

        /**
         * Visits the specified node.
         * @param node the actual node
         * @param key the key of this node
         */
        public void visitBeforeChildren(Node node, ConfigurationKey key)
        {
            if(!isAttributeNode(node))
            {
                fireElementStart(nodeName(node), fetchAttributes(node));

                if(node.getValue() != null)
                {
                    fireCharacters(node.getValue().toString());
                }  /* if */
            }  /* if */
        }

        /**
         * Checks if iteration should be terminated. This implementation stops
         * iteration after an exception has occurred.
         * @return a flag if iteration should be stopped
         */
        public boolean terminate()
        {
            return getException() != null;
        }

        /**
         * Returns an object with all attributes for the specified node.
         * @param node the actual node
         * @return an object with all attributes of this node
         */
        protected Attributes fetchAttributes(Node node)
        {
            AttributesImpl attrs = new AttributesImpl();
            AbstractConfiguration.Container children = node.getChildren();

            for(int i = 0; i < children.size(); i++)
            {
                Node child = (Node) children.get(i);
                if(isAttributeNode(child) && child.getValue() != null)
                {
                    String attr = ConfigurationKey.attributeName(
                    child.getName());
                    attrs.addAttribute(NS_URI, attr, attr, ATTR_TYPE,
                    child.getValue().toString());
                }  /* if */
            }  /* for */

            return attrs;
        }

        /**
         * Helper method for determining the name of a node. If a node has no
         * name (which is true for the root node), the specified default name
         * will be used.
         * @param node the node to be checked
         * @return the name for this node
         */
        private String nodeName(Node node)
        {
            return (node.getName() == null) ? getRootName() : node.getName();
        }

        /**
         * Checks if the specified node is an attribute node. In the node
         * hierarchy attributes are stored as normal child nodes, but with
         * special names.
         * @param node the node to be checked
         * @return a flag if this is an attribute node
         */
        private boolean isAttributeNode(Node node)
        {
            return ConfigurationKey.isAttributeKey(node.getName());
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区视频在线看| 自拍偷自拍亚洲精品播放| 岛国av在线一区| 奇米四色…亚洲| 国产欧美va欧美不卡在线| 欧美亚洲图片小说| 久久精品国产精品青草| 免费高清成人在线| 国产精品入口麻豆原神| 亚洲成人精品影院| 久久精品国产成人一区二区三区| 91视频.com| 精品久久久影院| 亚洲国产一区二区在线播放| 福利电影一区二区三区| 在线观看91av| 亚洲人成网站在线| 国产在线国偷精品免费看| 欧美性xxxxxxxx| 中文字幕av一区 二区| 麻豆精品视频在线观看视频| 国产精品一级在线| 国产亚洲精品福利| 国产视频不卡一区| 人妖欧美一区二区| 日本高清不卡aⅴ免费网站| 久久久91精品国产一区二区精品| 日本成人在线看| 欧美性三三影院| 亚洲精品综合在线| 成人性生交大片免费看中文网站| 精品美女被调教视频大全网站| 偷拍与自拍一区| 欧美午夜在线一二页| 亚洲免费高清视频在线| a级精品国产片在线观看| 中文字幕精品在线不卡| 国产一区二区三区视频在线播放| 日韩欧美亚洲国产精品字幕久久久 | 亚洲人精品午夜| 欧美电影免费观看高清完整版在 | 麻豆久久久久久| 91精品啪在线观看国产60岁| 亚洲成人www| 欧美精品乱码久久久久久| 亚洲第四色夜色| 欧美日韩电影在线| 日韩电影在线观看一区| 日韩美女天天操| 国产在线精品一区二区不卡了 | 国产麻豆成人精品| 久久在线观看免费| 国产成人丝袜美腿| **性色生活片久久毛片| 91免费观看在线| 亚洲国产sm捆绑调教视频 | 偷拍自拍另类欧美| 欧美一三区三区四区免费在线看| 欧美三级三级三级爽爽爽| 亚洲成人你懂的| 欧美一区二区视频在线观看 | 国产精品嫩草99a| 91福利视频网站| 五月天久久比比资源色| 精品写真视频在线观看| 久久蜜桃香蕉精品一区二区三区| 波多野结衣中文字幕一区二区三区| 精品1区2区在线观看| 成人国产精品免费观看动漫| 亚洲婷婷综合色高清在线| 欧美日韩成人一区| 国产一区二区三区黄视频| 国产精品乱码一区二区三区软件| 欧美专区日韩专区| 欧美一区二区三区免费在线看 | 亚洲成人在线免费| 欧美一级高清片| 顶级嫩模精品视频在线看| 亚洲自拍偷拍综合| 久久免费电影网| 日本高清不卡在线观看| 久久国产精品99久久人人澡| 国产精品福利一区二区| 一区二区激情视频| 精品精品欲导航| 91美女在线观看| 国产精品自拍av| 天堂在线亚洲视频| 亚洲色图一区二区| 久久综合999| 欧美欧美欧美欧美| av不卡免费电影| 激情图片小说一区| 在线一区二区三区四区| 韩国一区二区在线观看| 亚洲成人在线观看视频| 日本一区二区视频在线观看| 日本高清免费不卡视频| 激情成人午夜视频| 肉色丝袜一区二区| 中文字幕中文字幕中文字幕亚洲无线| 717成人午夜免费福利电影| 91日韩在线专区| 国产成人自拍在线| 在线播放91灌醉迷j高跟美女 | 亚洲一区二区三区在线| 久久久久国产精品免费免费搜索| 6080yy午夜一二三区久久| 在线亚洲免费视频| 91首页免费视频| gogogo免费视频观看亚洲一| 国产黑丝在线一区二区三区| 国内精品伊人久久久久av一坑| 香蕉久久夜色精品国产使用方法| 亚洲精品久久7777| 中文字幕亚洲一区二区av在线| 久久亚洲综合色一区二区三区| 日韩一级成人av| 日韩一区二区免费在线电影| 欧美精品 国产精品| 欧美在线免费观看视频| 日本韩国一区二区三区视频| 色天使色偷偷av一区二区| 99久久国产免费看| 91啪九色porn原创视频在线观看| 成人av电影在线播放| www.久久久久久久久| 国产乱码精品一区二区三区忘忧草| 精品中文字幕一区二区| 久久电影国产免费久久电影| 裸体一区二区三区| 麻豆一区二区在线| 久久99国产乱子伦精品免费| 精品一区二区久久久| 狠狠久久亚洲欧美| 国产成人综合亚洲91猫咪| 成人激情小说乱人伦| 国产精品白丝jk黑袜喷水| 成人免费视频免费观看| 一区二区三区在线视频观看| 亚洲妇女屁股眼交7| 日本麻豆一区二区三区视频| 日韩av电影一区| 国产一区二区免费看| 欧美激情资源网| 中文字幕在线观看一区二区| 亚洲激情自拍视频| 日韩黄色小视频| 国产中文字幕一区| www.成人在线| 欧美日韩久久久| 欧美精品一区二区高清在线观看| 欧美国产丝袜视频| 亚洲一二三区视频在线观看| 欧美在线免费播放| 日韩精品中午字幕| 国产精品色哟哟| 亚洲一卡二卡三卡四卡五卡| 日日嗨av一区二区三区四区| 蜜桃久久久久久| 国产精品一区二区在线看| 国产成人精品亚洲午夜麻豆| 日本高清不卡一区| 精品乱人伦一区二区三区| 成人欧美一区二区三区1314 | 亚洲777理论| 国产很黄免费观看久久| 久久亚洲捆绑美女| 亚洲欧美一区二区三区孕妇| 青青草国产成人99久久| 99国产精品久久久| 在线电影院国产精品| 国产精品欧美极品| 日本成人在线一区| 日本韩国一区二区三区视频| 久久久99精品免费观看| 天天操天天色综合| 国产三级精品在线| 国产农村妇女毛片精品久久麻豆| 爽爽淫人综合网网站| 高清久久久久久| 91精品国产一区二区三区香蕉| 欧美国产禁国产网站cc| 美女一区二区三区在线观看| 成人久久18免费网站麻豆| 欧美一级高清大全免费观看| 亚洲制服欧美中文字幕中文字幕| 极品少妇xxxx精品少妇| 色综合一区二区三区| 精品日韩一区二区三区| 一区二区激情视频| 成人自拍视频在线| 欧美日韩国产片| 亚洲一区二区四区蜜桃| 99国产欧美另类久久久精品| 国产色一区二区| 蜜桃久久久久久| 欧美一区二区三区在线| 亚洲人成人一区二区在线观看| 国产美女精品人人做人人爽|