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

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

?? configurationxmlreader.java

?? java servlet著名論壇源代碼
?? 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 org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.DTDHandler;
import org.xml.sax.EntityResolver;
import org.xml.sax.ErrorHandler;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.AttributesImpl;

/**
 * <p>A base class for &quot;faked&quot; <code>XMLReader</code> classes
 * that transform a configuration object in a set of SAX parsing events.</p>
 * <p>This class provides dummy implementations for most of the methods
 * defined in the <code>XMLReader</code> interface that are not used for this
 * special purpose. There will be concrete sub classes that process specific
 * configuration classes.</p>
 *
 * @author <a href="mailto:oliver.heger@t-online.de">Oliver Heger</a>
 * @version $Id: ConfigurationXMLReader.java,v 1.1 2003/12/09 08:25:30 huumai Exp $
 */
public abstract class ConfigurationXMLReader implements XMLReader
{
    /** Constant for the namespace URI.*/
    protected static final String NS_URI = "";

    /** Constant for the default name of the root element.*/
    private static final String DEFAULT_ROOT_NAME = "config";

    /** An empty attributes object.*/
    private static final Attributes EMPTY_ATTRS = new AttributesImpl();

    /** Stores the content handler.*/
    private ContentHandler contentHandler;

    /** Stores an exception that occurred during parsing.*/
    private SAXException exception;

    /** Stores the name for the root element.*/
    private String rootName;

    /**
     * Creates a new instance of <code>ConfigurationXMLReader</code>.
     */
    protected ConfigurationXMLReader()
    {
        super();
        setRootName(DEFAULT_ROOT_NAME);
    }

    /**
     * Parses the acutal configuration object. The passed system ID will be
     * ignored.
     * @param systemId the system ID (ignored)
     * @throws IOException if no configuration was specified
     * @throws SAXException if an error occurs during parsing
     */
    public void parse(String systemId) throws IOException, SAXException
    {
        parseConfiguration();
    }

    /**
     * Parses the acutal configuration object. The passed input source will be
     * ignored.
     * @param input the input source (ignored)
     * @throws IOException if no configuration was specified
     * @throws SAXException if an error occurs during parsing
     */
    public void parse(InputSource input) throws IOException, SAXException
    {
        parseConfiguration();
    }

    /**
     * Dummy implementation of the interface method.
     * @param name the name of the feature
     * @return always <b>false</b> (no features are supported)
     */
    public boolean getFeature(String name)
    {
        return false;
    }

    /**
     * Dummy implementation of the interface method.
     * @param name the name of the feature to be set
     * @param value the value of the feature
     */
    public void setFeature(String name, boolean value)
    {
    }

    /**
     * Returns the actually set content handler.
     * @return the content handler
     */
    public ContentHandler getContentHandler()
    {
        return contentHandler;
    }

    /**
     * Sets the content handler. The object specified here will receive SAX
     * events during parsing.
     * @param handler the content handler
     */
    public void setContentHandler(ContentHandler handler)
    {
        contentHandler = handler;
    }

    /**
     * Returns the DTD handler. This class does not support DTD handlers,
     * so this method always returns <b>null</b>.
     * @return the DTD handler
     */
    public DTDHandler getDTDHandler()
    {
        return null;
    }

    /**
     * Sets the DTD handler. The passed value is ignored.
     * @param handler the handler to be set
     */
    public void setDTDHandler(DTDHandler handler)
    {
    }

    /**
     * Returns the entity resolver. This class does not support an entity
     * resolver, so this method always returns <b>null</b>.
     * @return the entity resolver
     */
    public EntityResolver getEntityResolver()
    {
        return null;
    }

    /**
     * Sets the entity resolver. The passed value is ignored.
     * @param resolver the entity resolver
     */
    public void setEntityResolver(EntityResolver resolver)
    {
    }

    /**
     * Returns the error handler. This class does not support an error handler,
     * so this method always returns <b>null</b>.
     * @return the error handler
     */
    public ErrorHandler getErrorHandler()
    {
        return null;
    }

    /**
     * Sets the error handler. The passed value is ignored.
     * @param handler the error handler
     */
    public void setErrorHandler(ErrorHandler handler)
    {
    }

    /**
     * Dummy implementation of the interface method. No properties are
     * supported, so this method always returns <b>null</b>.
     * @param name the name of the requested property
     * @return the property value
     */
    public Object getProperty(String name)
    {
        return null;
    }

    /**
     * Dummy implementation of the interface method. No properties are
     * supported, so a call of this method just has no effect.
     * @param name the property name
     * @param value the property value
     */
    public void setProperty(String name, Object value)
    {
    }

    /**
     * Returns the name to be used for the root element.
     * @return the name for the root element
     */
    public String getRootName()
    {
        return rootName;
    }

    /**
     * Sets the name for the root element.
     * @param string the name for the root element.
     */
    public void setRootName(String string)
    {
        rootName = string;
    }

    /**
     * Fires a SAX element start event.
     * @param name the name of the actual element
     * @param attribs the attributes of this element (can be <b>null</b>)
     */
    protected void fireElementStart(String name, Attributes attribs)
    {
        if (getException() == null)
        {
            try
            {
                Attributes at = (attribs == null) ? EMPTY_ATTRS : attribs;
                getContentHandler().startElement(NS_URI, name, name, at);
            } /* try */
            catch (SAXException ex)
            {
                exception = ex;
            } /* catch */
        } /* if */
    }

    /**
     * Fires a SAX element end event.
     * @param name the name of the affected element
     */
    protected void fireElementEnd(String name)
    {
        if (getException() == null)
        {
            try
            {
                getContentHandler().endElement(NS_URI, name, name);
            } /* try */
            catch (SAXException ex)
            {
                exception = ex;
            } /* catch */
        } /* if */
    }

    /**
     * Fires a SAX characters event.
     * @param text the text
     */
    protected void fireCharacters(String text)
    {
        if (getException() == null)
        {
            try
            {
                char[] ch = text.toCharArray();
                getContentHandler().characters(ch, 0, ch.length);
            } /* try */
            catch (SAXException ex)
            {
                exception = ex;
            } /* catch */
        } /* if */
    }

    /**
     * Returns a reference to an exception that occurred during parsing.
     * @return a SAXExcpetion or <b>null</b> if none occurred
     */
    public SAXException getException()
    {
        return exception;
    }

    /**
     * Parses the configuration object and generates SAX events. This is the
     * main processing method.
     * @throws IOException if no configuration has been specified
     * @throws SAXException if an error occurs during parsing
     */
    protected void parseConfiguration() throws IOException, SAXException
    {
        if (getParsedConfiguration() == null)
        {
            throw new IOException("No configuration specified!");
        } /* if */

        if (getContentHandler() != null)
        {
            exception = null;
            getContentHandler().startDocument();
            processKeys();
            if (getException() != null)
            {
                throw getException();
            } /* if */
            getContentHandler().endDocument();
        } /* if */
    }

    /**
     * Returns a reference to the configuration that is parsed by this object.
     * @return the parsed configuration
     */
    public abstract Configuration getParsedConfiguration();

    /**
     * Processes all keys stored in the actual configuration. This method is
     * called by <code>parseConfiguration()</code> to start the main parsing
     * process. <code>parseConfiguration()</code> calls the content handler's
     * <code>startDocument()</code> and <code>endElement()</code> methods
     * and cares for exception handling. The remaining actions are left to this
     * method that must be implemented in a concrete sub class.
     * @throws IOException if an IO error occurs
     * @throws SAXException if a SAX error occurs
     */
    protected abstract void processKeys() throws IOException, SAXException;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图欧美激情| 麻豆精品一区二区| 日韩欧美国产高清| 91女厕偷拍女厕偷拍高清| 免费成人美女在线观看.| 中文字幕中文字幕一区| 日韩欧美另类在线| 欧美伊人久久大香线蕉综合69| 黄色日韩网站视频| 免费成人结看片| 一区二区日韩电影| 中文字幕av在线一区二区三区| 欧美一区二区在线免费播放 | 久久国内精品自在自线400部| 国产精品视频看| 精品区一区二区| 欧美区在线观看| 色婷婷av一区二区三区之一色屋| 国产mv日韩mv欧美| 久久99国产精品尤物| 亚洲大片精品永久免费| 亚洲欧美日韩成人高清在线一区| 久久久无码精品亚洲日韩按摩| 欧美丰满嫩嫩电影| 欧美视频在线一区| 欧洲av在线精品| 日本乱人伦aⅴ精品| 欧美草草影院在线视频| 欧美日韩在线亚洲一区蜜芽| 一本一道综合狠狠老| 99在线热播精品免费| 成人精品小蝌蚪| 丁香婷婷综合色啪| 国产精品一区二区91| 国内精品嫩模私拍在线| 精品一区二区免费看| 秋霞国产午夜精品免费视频| 日韩精品五月天| 日本亚洲免费观看| 久久精品国产一区二区| 老司机精品视频在线| 国内外精品视频| 大美女一区二区三区| 从欧美一区二区三区| av一区二区久久| 色综合久久99| 欧美日韩亚洲综合在线| 91麻豆精品国产无毒不卡在线观看| 欧美日韩视频不卡| 日韩一区二区三区视频| 精品国产一区二区三区久久久蜜月| 欧美sm极限捆绑bd| 久久精品亚洲麻豆av一区二区| 久久久久久9999| 国产精品久久99| 一区二区三区美女| 亚洲成人一区在线| 精品一区二区日韩| 成人听书哪个软件好| 91久久精品网| 91精品免费观看| 久久亚洲欧美国产精品乐播| 国产精品久久久久久久蜜臀 | 欧美日韩午夜精品| 日韩欧美不卡在线观看视频| 久久久精品国产99久久精品芒果| 国产精品女主播在线观看| 亚洲精品免费在线| 偷拍日韩校园综合在线| 另类人妖一区二区av| 欧美精品一区二区精品网| 久久久五月婷婷| 一区二区三区在线影院| 男女性色大片免费观看一区二区| 国产高清不卡二三区| 色综合久久久网| 精品免费视频一区二区| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 91久久精品国产91性色tv| 51精品久久久久久久蜜臀| 日本一区二区不卡视频| 亚洲国产视频在线| 国产成人自拍在线| 欧美日韩一区二区三区在线看| 亚洲精品一区二区三区四区高清| √…a在线天堂一区| 日韩国产高清在线| 91在线高清观看| 精品国产一区a| 亚洲精品综合在线| 国产永久精品大片wwwapp| 欧洲国产伦久久久久久久| 久久精品人人爽人人爽| 午夜视频在线观看一区二区 | 婷婷一区二区三区| 国产成人免费视频一区| 欧美日韩国产高清一区二区| 国产精品黄色在线观看| 精品一区二区三区免费观看| 在线一区二区三区四区| 国产精品色哟哟| 日本色综合中文字幕| 91丨porny丨户外露出| 精品国产乱码久久久久久免费| 亚洲最大成人综合| 成人深夜视频在线观看| 精品卡一卡二卡三卡四在线| 亚洲一区二区三区不卡国产欧美| 成人精品一区二区三区中文字幕| 欧美zozozo| 日韩高清不卡一区二区三区| 欧美午夜片在线看| 亚洲精品成人在线| 成人黄色一级视频| 2020日本不卡一区二区视频| 秋霞午夜鲁丝一区二区老狼| 欧美午夜一区二区三区免费大片| 中文字幕在线免费不卡| 成人a级免费电影| 久久精品视频一区二区三区| 国内精品不卡在线| 精品入口麻豆88视频| 美女性感视频久久| 777欧美精品| 亚洲成a人片在线不卡一二三区| 色94色欧美sute亚洲线路一ni| 国产精品盗摄一区二区三区| 成人午夜伦理影院| 中文一区二区在线观看| 国产aⅴ综合色| 国产喷白浆一区二区三区| 国产精品影视在线观看| 久久久久久麻豆| 国产精品99久久久| 国产精品午夜久久| 成人免费不卡视频| 国产精品美女久久久久高潮| 成人免费看的视频| 亚洲色图第一区| 欧美偷拍一区二区| 亚洲成av人片在线观看无码| 欧美精品久久久久久久多人混战 | 亚洲一区视频在线| 欧美日本在线观看| 青青草成人在线观看| 日韩你懂的在线播放| 激情综合五月婷婷| 国产日本一区二区| 99精品视频一区二区三区| 亚洲色图清纯唯美| 欧美日韩色综合| 久久黄色级2电影| 亚洲国产精品ⅴa在线观看| 91看片淫黄大片一级在线观看| 亚洲国产婷婷综合在线精品| 欧美一卡二卡在线观看| 激情综合五月天| 中文字幕日韩一区| 3d动漫精品啪啪一区二区竹菊| 美女精品自拍一二三四| 黄网站免费久久| 日韩美女视频19| 欧美日韩国产免费一区二区| 久久精品国产99国产| 国产日韩欧美a| 欧美性感一类影片在线播放| 久久丁香综合五月国产三级网站| 国产欧美综合在线| 欧美丝袜自拍制服另类| 久久99九九99精品| 亚洲人吸女人奶水| 91精品综合久久久久久| 国产69精品久久久久毛片| 亚洲乱码中文字幕综合| 欧美成人国产一区二区| 91日韩精品一区| 激情图区综合网| 亚洲欧美激情视频在线观看一区二区三区| 欧美色视频在线| 国产91精品一区二区麻豆亚洲| 亚洲综合999| 久久久精品国产免费观看同学| 欧美亚洲禁片免费| 国产成人精品三级麻豆| 亚洲v精品v日韩v欧美v专区| 国产精品蜜臀av| 欧美va天堂va视频va在线| 在线看国产一区二区| 国产精品一级二级三级| 视频在线观看国产精品| 中文字幕亚洲在| 久久精品这里都是精品| 欧美浪妇xxxx高跟鞋交| jizz一区二区| 久久av中文字幕片| 午夜精品久久一牛影视| 亚洲欧美另类在线| 欧美国产日韩精品免费观看| 日韩欧美亚洲国产另类| 欧美午夜不卡视频|