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

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

?? structureddocumentutils.java

?? JXTA&#8482 is a set of open, generalized peer-to-peer (P2P) protocols that allow any networked devi
?? JAVA
字號(hào):
/* * Copyright (c) 2001-2007 Sun Microsystems, Inc.  All rights reserved. *   *  The Sun Project JXTA(TM) Software License *   *  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 Sun Microsystems, Inc. for JXTA(TM) technology."  *     Alternately, this acknowledgment may appear in the software itself, if  *     and wherever such third-party acknowledgments normally appear. *   *  4. The names "Sun", "Sun Microsystems, Inc.", "JXTA" and "Project JXTA" must  *     not be used to endorse or promote products derived from this software  *     without prior written permission. For written permission, please contact  *     Project JXTA at http://www.jxta.org. *   *  5. Products derived from this software may not be called "JXTA", nor may  *     "JXTA" appear in their name, without prior written permission of Sun. *   *  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 SUN  *  MICROSYSTEMS 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. *   *  JXTA is a registered trademark of Sun Microsystems, Inc. in the United  *  States and other countries. *   *  Please see the license information page at : *  <http://www.jxta.org/project/www/license.html> for instructions on use of  *  the license in source files. *   *  ==================================================================== *   *  This software consists of voluntary contributions made by many individuals  *  on behalf of Project JXTA. For more information on Project JXTA, please see  *  http://www.jxta.org. *   *  This license is based on the BSD license adopted by the Apache Foundation.  */package net.jxta.document;import java.util.Enumeration;/** *  Provides a number of static utility members which are helpful in *  manipluating StructuredDocuments. * **/public final class StructuredDocumentUtils {        /**     *  A singleton class, not meant to be constructed     **/    private StructuredDocumentUtils() {        ;    }        /**     * Recursively copy children elements of <code>from</code> into the     * the element <code>intoElement</code> of document <code>intoDoc</code>.     *     * <p/><b>BEWARE</b> that this does NOT copy the TEXTVALUE (if any) of the     * <code>fromParent</code> element, ONLY CHILDREN. All other elements     * are fully copied, including their textValue.     *     * <p/>It is not possible to copy a textValue in an existing element.     *     * @param intoDoc  the document into which the elements will be     * copied.     * @param intoElement  the element which will serve as the parent for     * the elements being copied.     * @param from the parent element of the elements which will be copied.     **/    public static void copyChildren(StructuredDocument intoDoc, Element intoElement, Element from) {                for (Enumeration eachChild = from.getChildren(); eachChild.hasMoreElements();) {                        Element aChild = (Element) eachChild.nextElement();            Element newElement = intoDoc.createElement(aChild.getKey(), aChild.getValue());            intoElement.appendChild(newElement);                        // copy attributes if any            if ((aChild instanceof Attributable) && (newElement instanceof Attributable)) {                Enumeration eachAttrib = ((Attributable) aChild).getAttributes();                                while (eachAttrib.hasMoreElements()) {                    Attribute anAttrib = (Attribute) eachAttrib.nextElement();                                        ((Attributable) newElement).addAttribute(anAttrib.getName(), anAttrib.getValue());                }            }                        // recurse to add the children.            copyChildren(intoDoc, newElement, aChild);        }    }        /**     *  Recursively copy elements beginnging with <code>from</code> into the     *  document identified by <code>intoDoc</code>.     *     *  @param intoDoc  the document into which the elements which will be     *  copied.     *  @param intoElement  the element which will serve as the parent for     *  the elements being copied.     *  @param from the root element of the hierarchy which will be copied.     *  @param newName the root element being copied is renamed     *  <em>newName</em>.     *  @return The added element.     *     **/    public static Element copyElements(StructuredDocument intoDoc, Element intoElement, Element from, Object newName) {                Element newElement = intoDoc.createElement(newName, from.getValue());                intoElement.appendChild(newElement);                boolean hasType = false;        // copy attributes if any        if (newElement instanceof Attributable) {            if (from instanceof Attributable) {                Enumeration eachAttrib = ((Attributable) from).getAttributes();                            while (eachAttrib.hasMoreElements()) {                    Attribute anAttrib = (Attribute) eachAttrib.nextElement();                    String attribName = anAttrib.getName();                    if (attribName.equals("type")) {                        hasType = true;                    }                    ((Attributable) newElement).addAttribute(attribName, anAttrib.getValue());                }            }            // If "from" happens to be a document, and if it happens to be renamed, and if it does not have an explicit type            // attribute, then preserve the document type, which we assume is the original name, converted to string, as a type            // attribute. It is an XMLism. It may be wrong or at least ineffective for other kinds of structured documents. If            // it one day becomes an issue, it will have to be resolved by having a method specific to each kind of structured            // document and dedicated to correcting type loss.            Object origName = from.getKey().toString();            if ((!hasType) && (!newName.equals(origName)) && (from instanceof Document)) {                ((Attributable) newElement).addAttribute("type", origName.toString());            }        }        StructuredDocumentUtils.copyChildren(intoDoc, newElement, from);                return newElement;    }        /**     *  Recursively copy elements beginnging with <code>from</code> into the     *  document identified by <code>intoDoc</code>.     *     *  @param intoDoc  the document into which the elements which will be     *  copied.     *  @param intoElement  the element which will serve as the parent for     *  the elements being copied.     *  @param from the root element of the hierarchy which will be copied.     *  @return The added element.     **/    public static Element copyElements(StructuredDocument intoDoc, Element intoElement, Element from) {                return copyElements(intoDoc, intoElement, from, from.getKey());    }        /**     * Copies the specified element or document into a standalone document of     * same type. The <code>from</code element's name is used as the document     * type. All child elements are recursively copied.     *     * @param from the root element from which to begin copying.     * @return StructuredDocument the copy     **/    public static StructuredDocument copyAsDocument(Element from) {                StructuredDocument result;        Object value = from.getValue();                if (value == null) {            result = StructuredDocumentFactory.newStructuredDocument(from.getRoot().getMimeType(), from.getKey().toString());        } else {            result = StructuredDocumentFactory.newStructuredDocument(from.getRoot().getMimeType(), from.getKey().toString()                    ,                    value.toString());            value = null;        }                // copy attributes if any        if ((from instanceof Attributable) && (result instanceof Attributable)) {            Enumeration eachAttrib = ((Attributable) from).getAttributes();                        while (eachAttrib.hasMoreElements()) {                Attribute anAttrib = (Attribute) eachAttrib.nextElement();                                ((Attributable) result).addAttribute(anAttrib.getName(), anAttrib.getValue());            }        }                StructuredDocumentUtils.copyChildren(result, result, from);                return result;    }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91搞黄在线观看| 国产黄色成人av| 一区二区三区精品| 国产精品久久福利| 国产精品国产自产拍高清av| 久久婷婷色综合| 久久免费午夜影院| 国产欧美日韩激情| 中文字幕一区二区三区视频| 国产精品美女www爽爽爽| 国产精品嫩草99a| 亚洲欧美色图小说| 亚洲电影一级黄| 美日韩黄色大片| 国产激情一区二区三区| 成人av影视在线观看| 96av麻豆蜜桃一区二区| 欧美影院一区二区| 欧美精品久久久久久久多人混战| 欧美妇女性影城| 欧美sm美女调教| 欧美国产1区2区| 伊人性伊人情综合网| 亚洲成a天堂v人片| 国产一区二区三区在线观看精品| 成人美女在线视频| 欧美三级午夜理伦三级中视频| 日韩一区二区在线看片| 国产欧美一区二区三区网站| 日韩美女久久久| 天天操天天综合网| kk眼镜猥琐国模调教系列一区二区| 99免费精品视频| 日韩亚洲欧美成人一区| 亚洲国产成人在线| 五月综合激情网| 成人福利视频在线看| 91精品国产综合久久国产大片| 久久精品亚洲精品国产欧美kt∨| 亚洲欧美另类综合偷拍| 美女尤物国产一区| 91视频在线看| 欧美高清视频不卡网| 国产精品久久久久久久久搜平片 | 亚洲风情在线资源站| 日本一区中文字幕| www.色精品| 日韩欧美国产一区二区三区| 亚洲品质自拍视频| 国产精品一区在线观看你懂的| 欧美午夜理伦三级在线观看| 国产色一区二区| 日本不卡一二三区黄网| 一本色道久久加勒比精品| 欧美成人在线直播| 偷拍亚洲欧洲综合| 在线一区二区三区四区| 国产精品视频线看| 国产一区在线不卡| 日韩欧美区一区二| 日本在线不卡视频| 欧美日韩大陆一区二区| 中文字幕人成不卡一区| 国产精品白丝av| 精品国产免费一区二区三区香蕉 | 欧美视频一区二区| 亚洲免费观看高清完整| 国产aⅴ综合色| 久久综合久久鬼色| 激情综合色综合久久综合| 91精品中文字幕一区二区三区| 一区二区免费在线| 在线免费观看日韩欧美| 亚洲摸摸操操av| 91丨porny丨中文| 亚洲视频资源在线| 色综合欧美在线视频区| 亚洲欧洲av在线| 91在线观看美女| 亚洲精品第1页| 在线精品视频一区二区| 亚洲一区在线观看免费| 欧美调教femdomvk| 日韩av高清在线观看| 日韩欧美另类在线| 国产伦精品一区二区三区视频青涩 | 国产欧美精品在线观看| 国产精品一级在线| 国产精品狼人久久影院观看方式| 丁香网亚洲国际| 亚洲视频在线一区二区| 91黄色小视频| 日韩精品三区四区| 欧美成人乱码一区二区三区| 韩国三级在线一区| 国产精品三级av| 欧美少妇xxx| 精品影院一区二区久久久| 欧美极品少妇xxxxⅹ高跟鞋 | 中文字幕一区二区不卡| 一本色道久久综合狠狠躁的推荐| 亚洲国产一区二区视频| 日韩免费高清视频| 成人国产精品免费观看视频| 一区二区三区加勒比av| 日韩免费高清av| av亚洲产国偷v产偷v自拍| 亚洲国产视频直播| 久久午夜国产精品| 欧美系列在线观看| 国产酒店精品激情| 亚洲国产精品久久久久婷婷884| 日韩一区国产二区欧美三区| 成人自拍视频在线| 丝袜诱惑制服诱惑色一区在线观看| 欧美岛国在线观看| 在线观看亚洲一区| 国产suv精品一区二区三区| 亚洲成人手机在线| 国产精品沙发午睡系列990531| 欧美日韩小视频| www..com久久爱| 国产一区二区在线电影| 亚洲一区国产视频| 日本一区二区高清| 日韩一级黄色片| 欧美在线观看一区二区| 成人免费精品视频| 波多野结衣一区二区三区 | 久久一区二区三区四区| 欧美性一级生活| 不卡一二三区首页| 国产一区二区三区免费观看| 亚洲一二三专区| 一区二区中文视频| 国产欧美日韩综合| 精品裸体舞一区二区三区| 欧美日韩国产色站一区二区三区| hitomi一区二区三区精品| 蓝色福利精品导航| 亚洲电影欧美电影有声小说| 亚洲男人的天堂在线观看| 国产精品美女久久久久久久| 精品成a人在线观看| 6080国产精品一区二区| 欧美色倩网站大全免费| 在线观看日产精品| 欧美伊人久久久久久久久影院| 99re这里只有精品首页| 成人污视频在线观看| 成人一级黄色片| 99视频精品全部免费在线| 成人白浆超碰人人人人| 成人免费精品视频| 91小视频在线免费看| 97久久超碰国产精品| 91麻豆自制传媒国产之光| 99re视频精品| 欧美在线色视频| 欧美日韩国产综合一区二区| 欧美亚一区二区| 91精品在线免费观看| 欧美一区二区精品在线| 日韩精品一区二区三区在线观看| 日韩一区二区三区三四区视频在线观看| 欧美日韩综合不卡| 欧美一区二区免费| 久久婷婷综合激情| 综合婷婷亚洲小说| 亚洲永久精品国产| 麻豆高清免费国产一区| 国产美女久久久久| 97精品国产97久久久久久久久久久久| 91小视频在线免费看| 欧美性极品少妇| 欧美大片日本大片免费观看| 久久天天做天天爱综合色| 国产拍揄自揄精品视频麻豆| 中文字幕日韩欧美一区二区三区| 亚洲乱码国产乱码精品精可以看| 亚洲国产精品人人做人人爽| 久久精品国产澳门| gogogo免费视频观看亚洲一| 欧美在线视频日韩| 精品国产乱码久久久久久久| 国产精品人妖ts系列视频| 一区二区三区中文在线| 久久9热精品视频| 色综合咪咪久久| 精品久久人人做人人爽| 中文字幕制服丝袜成人av| 亚洲成a人v欧美综合天堂下载| 国产一区二区三区四| 在线影院国内精品| 久久综合九色综合97婷婷女人 | 日韩一区二区麻豆国产| 欧美国产日产图区| 日本中文字幕一区二区有限公司| 懂色av一区二区三区免费观看| 欧美三级电影精品|