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

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

?? configurationxmldocument.java

?? java servlet著名論壇源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
     * Transforms the wrapped configuration into a w3c document. The root
     * element will be given a default name.
     * @param prefix a prefix for the keys to process; can be <b>null</b>,
     * then all keys in the configuration will be added to the document
     * @return the document
     * @throws DocumentException if an error occurs
     */
    public org.w3c.dom.Document getW3cDocument(String prefix)
        throws DocumentException
    {
        return getW3cDocument(prefix, null);
    }

    /**
     * Transforms the wrapped configuration into a w3c document. The root
     * element will be given a default name.
     * @return the document
     * @throws DocumentException if an error occurs
     */
    public org.w3c.dom.Document getW3cDocument() throws DocumentException
    {
        return getW3cDocument(null, null);
    }

    /**
     * Converts a dom4j document into a w3c document.
     * @param doc the dom4j document
     * @return the w3c document
     * @throws DocumentException if an error occurs
     */
    static org.w3c.dom.Document toW3cDocument(Document doc)
        throws DocumentException
    {
        return new DOMWriter().write(doc);
    }

    /**
     * Helper method for constructing a subset if necessary. Depending on
     * the passed in key this method either returns the wrapped configuration
     * or the specified subset of it.
     * @param key the key
     * @return the configuration for that key
     */
    private Configuration configForKey(String key)
    {
        Configuration conf = (key == null)
            ? getConfiguration()
            : getConfiguration().subset(key);

        // undefined?
        if(conf == null || (conf instanceof CompositeConfiguration
        && ((CompositeConfiguration) conf).getNumberOfConfigurations() < 2))
        {
            throw new NoSuchElementException("No subset with key " + key);
        }  /* if */

        return conf;
    }

    /**
     * <p>Creates and initializes an object specified in the configuration
     * using Digester.</p>
     * <p>This method first constructs a subset configuration with the keys
     * starting with the given prefix. It then transforms this subset into a
     * XML document and let that be processed by Digester. The result of this
     * processing is returned.</p>
     * <p>The method is intended to be used for creating simple objects that
     * are specified somewhere in the configuration in a standard way. The
     * following fragment shows how a configuration file must look like to be
     * understood by the default Digester rule set used by this method:</p>
     * <p><pre>
     * ...
     *   &lt;class name="mypackage.MyClass"/&gt;
     *   &lt;args&gt;
     *     &lt;property name="myFirstProperty" value="myFirstValue"/&gt;
     *     &lt;property name="MySecondProperty" value="mySecondValue"/&gt;
     *     ...
     *   &lt;/args&gt;
     * ...
     * </pre></p>
     * @param prefix the prefix of the keys that are passed to Digester; can
     * be <b>null</b>, then the whole configuration will be processed
     * @return the result of the Digester processing
     * @throws IOException if an IOException occurs
     * @throws SAXException if a SAXException occurs
     */
    public Object callDigester(String prefix) throws IOException, SAXException
    {
        Digester digester = getDefaultDigester(prefix);
        return digester.parse(getClass().getName());
    }

    /**
     * Returns a default Digester instance. This instance is used for the
     * simple object creation feature.
     * @param prefix the prefix of the keys to be processed; can be
     * <b>null</b>, then the whole configuration is meant
     * @return the default Digester instance
     */
    protected Digester getDefaultDigester(String prefix)
    {
        Digester digester = createDefaultDigester(prefix);
        setupDefaultDigester(digester);

        return digester;
    }

    /**
     * Creates the default Digester instance for the given prefix. This method
     * is called by <code>getDefaultDigester()</code>.
     * @param prefix the prefix of the keys to be processed; can be
     * <b>null</b>, then the whole configuration is meant
     * @return the default Digester instance
     */
    protected Digester createDefaultDigester(String prefix)
    {
        return new Digester(createXMLReader(prefix));
    }

    /**
     * Initializes the default digester instance used for simple object
     * creation. Here all needed properties and rules can be set. This base
     * implementation sets default rules for object creation as explained in
     * the comment for the <code>callDigester()</code> methods.
     * @param digester the digester instance to be initialized
     */
    protected void setupDefaultDigester(Digester digester)
    {
        digester.addObjectCreate(ELEM_CLASS, ATTR_NAME, Object.class);
        digester.addSetProperty(ELEM_PROPERTY, ATTR_NAME, ATTR_VALUE);
    }

    /**
     * Writes a configuration (or parts of it) to the given writer.
     * @param out the output writer
     * @param prefix the prefix of the subset to write; if <b>null</b>, the
     * whole configuration is written
     * @param root the name of the root element of the resulting document;
     * <b>null</b> for a default name
     * @param pretty flag for the pretty print mode
     * @throws IOException if an IO error occurs
     * @throws DocumentException if there is an error during processing
     */
    public void write(Writer out, String prefix, String root, boolean pretty)
        throws IOException, DocumentException
    {
        OutputFormat format =
            (pretty)
                ? OutputFormat.createPrettyPrint()
                : OutputFormat.createCompactFormat();

        XMLWriter writer = new XMLWriter(out, format);
        writer.write(getDocument(prefix, root));
    }

    /**
     * Writes a configuration (or parts of it) to the given writer.
     * This overloaded version always uses pretty print mode.
     * @param out the output writer
     * @param prefix the prefix of the subset to write; if <b>null</b>, the
     * whole configuration is written
     * @param root the name of the root element of the resulting document;
     * <b>null</b> for a default name
     * @throws IOException if an IO error occurs
     * @throws DocumentException if there is an error during processing
     */
    public void write(Writer out, String prefix, String root)
        throws IOException, DocumentException
    {
        write(out, prefix, root, true);
    }

    /**
     * Writes a configuration (or parts of it) to the given writer.
     * The resulting document's root element will be given a default name.
     * @param out the output writer
     * @param prefix the prefix of the subset to write; if <b>null</b>, the
     * whole configuration is written
     * @param pretty flag for the pretty print mode
     * @throws IOException if an IO error occurs
     * @throws DocumentException if there is an error during processing
     */
    public void write(Writer out, String prefix, boolean pretty)
        throws IOException, DocumentException
    {
        write(out, prefix, null, pretty);
    }

    /**
     * Writes a configuration (or parts of it) to the given writer.
     * The resulting document's root element will be given a default name.
     * This overloaded version always uses pretty print mode.
     * @param out the output writer
     * @param prefix the prefix of the subset to write; if <b>null</b>, the
     * whole configuration is written
     * @throws IOException if an IO error occurs
     * @throws DocumentException if there is an error during processing
     */
    public void write(Writer out, String prefix)
        throws IOException, DocumentException
    {
        write(out, prefix, true);
    }

    /**
     * Writes the wrapped configuration to the given writer.
     * The resulting document's root element will be given a default name.
     * @param out the output writer
     * @param pretty flag for the pretty print mode
     * @throws IOException if an IO error occurs
     * @throws DocumentException if there is an error during processing
     */
    public void write(Writer out, boolean pretty)
        throws IOException, DocumentException
    {
        write(out, null, null, pretty);
    }

    /**
     * Writes the wrapped configuration to the given writer.
     * The resulting document's root element will be given a default name.
     * This overloaded version always uses pretty print mode.
     * @param out the output writer
     * @throws IOException if an IO error occurs
     * @throws DocumentException if there is an error during processing
     */
    public void write(Writer out) throws IOException, DocumentException
    {
        write(out, true);
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97久久精品人人爽人人爽蜜臀| 97精品电影院| 色一情一乱一乱一91av| 日韩一区二区在线免费观看| 成人欧美一区二区三区小说| 精一区二区三区| 欧美日韩一区二区三区不卡| 国产精品久久久久aaaa| 狠狠狠色丁香婷婷综合久久五月| 一本大道久久a久久精品综合| 久久综合色鬼综合色| 天天影视涩香欲综合网| 色婷婷av久久久久久久| 久久久亚洲精品一区二区三区 | 久久精品国产精品青草| 日本黄色一区二区| 亚洲欧美综合色| 国产激情视频一区二区在线观看| 91精品蜜臀在线一区尤物| 亚洲影视在线观看| 一本大道久久精品懂色aⅴ | 成人福利电影精品一区二区在线观看| 91精品国产福利在线观看| 亚洲一级在线观看| 色哟哟欧美精品| 亚洲欧美另类图片小说| 99久久久久免费精品国产| 中文字幕av一区二区三区免费看| 国产一区视频网站| 国产女人18水真多18精品一级做| 国产成人免费9x9x人网站视频| 久久先锋资源网| 国产精品性做久久久久久| 国产日韩欧美电影| 成人综合婷婷国产精品久久| 国产午夜精品一区二区三区视频| 国产在线一区观看| 欧美国产激情二区三区| eeuss鲁一区二区三区| 国产精品福利一区二区| 成人av一区二区三区| 亚洲免费在线观看| 在线观看成人免费视频| 日本视频一区二区三区| 精品污污网站免费看| 91精品国产免费| 欧美三级电影网| 欧美亚洲一区三区| 国产91丝袜在线播放| 成人精品gif动图一区| 国产日韩视频一区二区三区| 成人国产精品视频| 亚洲香肠在线观看| 精品国产一区二区三区av性色| 国产精品综合一区二区三区| 国产精品网站导航| 欧美自拍偷拍午夜视频| 久久成人免费网站| 国产精品天天摸av网| 欧美在线短视频| 久久超级碰视频| 综合激情成人伊人| 欧美一区二区三区在线视频| 国产成+人+日韩+欧美+亚洲| 国产精品国产三级国产普通话三级| 91久久精品一区二区| 久久精品国产网站| 亚洲色图色小说| 日韩精品专区在线影院观看| 岛国精品在线观看| 视频一区中文字幕| 国产日韩av一区| 91精品国产福利| 99久久精品免费| 久88久久88久久久| 一区二区三区四区不卡在线| 欧美成人在线直播| 在线观看中文字幕不卡| 国产精选一区二区三区 | 一本色道a无线码一区v| 日韩高清不卡一区二区| 国产精品传媒视频| 日韩欧美中文字幕公布| 99久久伊人网影院| 乱中年女人伦av一区二区| 一区二区三区自拍| 久久久国产精华| 91精品国产色综合久久久蜜香臀| 成人午夜激情视频| 极品少妇xxxx精品少妇偷拍| 一区二区三区四区在线免费观看 | 久久99久久99| 亚洲va国产va欧美va观看| 国产精品美女久久久久高潮| 日韩午夜激情视频| 2欧美一区二区三区在线观看视频| 六月丁香婷婷久久| 欧美一卡二卡三卡| 欧美日韩国产片| 色综合久久中文字幕| 成人一级视频在线观看| 国产精品一区三区| 精品一区二区在线播放| 日本三级亚洲精品| 三级一区在线视频先锋 | 97久久精品人人做人人爽50路| 黄色精品一二区| 麻豆成人综合网| 奇米影视7777精品一区二区| 午夜激情综合网| 亚洲狠狠爱一区二区三区| 亚洲精品成人少妇| 亚洲日韩欧美一区二区在线| 国产精品私人影院| 国产精品亲子伦对白| 国产女人aaa级久久久级| 久久精品亚洲精品国产欧美kt∨ | 亚洲欧洲一区二区在线播放| 久久久不卡网国产精品一区| 久久久亚洲国产美女国产盗摄| 欧美大片国产精品| 26uuu精品一区二区在线观看| 精品国产一区二区三区久久久蜜月 | 777a∨成人精品桃花网| 欧美欧美欧美欧美| 欧美不卡在线视频| 欧美精品一区二区高清在线观看| 日韩精品综合一本久道在线视频| 日韩欧美的一区二区| 久久综合一区二区| 国产精品久久久久久户外露出 | 国产日韩三级在线| 国产精品久线观看视频| 亚洲欧美欧美一区二区三区| 亚洲欧美激情插| 亚洲国产日韩综合久久精品| 日韩精品一卡二卡三卡四卡无卡| 蜜臀精品久久久久久蜜臀| 国产精品一二三在| 一本一道久久a久久精品| 欧美日本不卡视频| 久久久99久久| 一二三区精品视频| 美女在线视频一区| 成人av电影免费观看| 欧美性色aⅴ视频一区日韩精品| 欧美精品视频www在线观看| 精品少妇一区二区| 综合亚洲深深色噜噜狠狠网站| 亚洲一区二区影院| 国产综合色精品一区二区三区| 成人在线综合网| 欧美日韩国产大片| 国产亚洲欧美日韩俺去了| 亚洲猫色日本管| 麻豆国产精品视频| 色欧美88888久久久久久影院| 日韩精品中文字幕在线不卡尤物| 国产精品全国免费观看高清| 亚洲a一区二区| 国产麻豆成人传媒免费观看| 在线免费观看日本一区| 久久午夜色播影院免费高清| 亚洲国产毛片aaaaa无费看| 国产精品一区二区三区乱码| 欧美视频一二三区| 国产欧美日韩另类一区| 日韩av一二三| 在线观看亚洲精品| 国产欧美日韩麻豆91| 久久精品国产999大香线蕉| 色综合激情久久| 国产亚洲精品超碰| 久久不见久久见免费视频7| 在线免费av一区| 国产精品久久毛片av大全日韩| 免费成人在线观看视频| 欧美性猛交xxxx黑人交| 国产精品国模大尺度视频| 久久国产福利国产秒拍| 欧美日韩在线三级| 亚洲视频一二区| 成人理论电影网| 久久综合色婷婷| 精品中文字幕一区二区小辣椒| 欧美日韩国产经典色站一区二区三区| 成人免费在线播放视频| 粉嫩av一区二区三区在线播放| 欧美va日韩va| 蜜芽一区二区三区| 欧美丰满少妇xxxxx高潮对白| 亚洲少妇最新在线视频| 北条麻妃国产九九精品视频| 国产免费久久精品| 成人免费视频国产在线观看| 欧美激情一区三区| 国产91精品入口| 国产精品沙发午睡系列990531| 国产成人高清在线| 国产欧美视频在线观看|