亚洲欧美第一页_禁久久精品乱码_粉嫩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高清在线观看| 国产在线不卡一区| 亚洲在线视频网站| 国产欧美精品一区| 制服丝袜成人动漫| 91片黄在线观看| 国产一区二区看久久| 亚洲成av人综合在线观看| 国产精品天干天干在线综合| 日韩限制级电影在线观看| 一本一道波多野结衣一区二区| 国产美女视频一区| 日韩精品一卡二卡三卡四卡无卡 | 精品免费视频一区二区| 91免费观看国产| 国产一区二区免费视频| 日韩成人一区二区| 一个色在线综合| 国产精品成人免费精品自在线观看| 欧美一级片在线| 欧美三级电影在线观看| 色婷婷综合久久| www.久久精品| 成人av网站在线观看| 国产精品一区三区| 蜜臀av一级做a爰片久久| 性做久久久久久免费观看 | 日韩免费看的电影| 欧美老女人第四色| 欧美日韩另类一区| 欧美亚洲国产一卡| 91成人看片片| 99re这里都是精品| 99精品偷自拍| 成人免费视频一区二区| 国产一区二区不卡老阿姨| 精品午夜久久福利影院| 欧美aⅴ一区二区三区视频| 丝袜美腿亚洲一区二区图片| 亚洲丶国产丶欧美一区二区三区| 亚洲男同性视频| 一区二区三区成人在线视频| 樱花影视一区二区| 亚洲综合丝袜美腿| 亚洲电影第三页| 视频精品一区二区| 免费av网站大全久久| 日本v片在线高清不卡在线观看| 日韩经典一区二区| 日韩精品欧美成人高清一区二区| 日韩制服丝袜av| 日本亚洲电影天堂| 久久91精品国产91久久小草| 国产在线国偷精品产拍免费yy| 国产精一区二区三区| 丁香另类激情小说| 91女厕偷拍女厕偷拍高清| 色哟哟一区二区在线观看 | 91在线国产观看| 日本道在线观看一区二区| 欧美羞羞免费网站| 欧美一区二区三区视频在线观看| 精品乱人伦一区二区三区| 久久亚洲一区二区三区四区| 中文字幕不卡在线观看| 一区二区三区产品免费精品久久75| 亚洲sss视频在线视频| 美女久久久精品| 国产成人鲁色资源国产91色综| 成人动漫一区二区三区| 欧美制服丝袜第一页| 日韩一区二区在线观看| 中文字幕不卡在线| 亚洲一区二区三区精品在线| 麻豆国产精品777777在线| 顶级嫩模精品视频在线看| 色婷婷综合久久久久中文一区二区 | 国产高清精品久久久久| 91在线视频播放| 欧美一级二级三级乱码| 国产日韩欧美一区二区三区乱码| 椎名由奈av一区二区三区| 午夜精品久久久久久久| 国产一区二区三区在线观看免费 | 欧美大肚乱孕交hd孕妇| 国产精品久久久爽爽爽麻豆色哟哟| 亚洲综合视频网| 国产精品一级在线| 欧美在线免费视屏| 久久精品一区二区三区不卡| 亚洲第一二三四区| 国产成人综合精品三级| 欧美猛男gaygay网站| 亚洲国产精品传媒在线观看| 日本亚洲一区二区| 成人97人人超碰人人99| 欧美一级在线视频| 亚洲精品乱码久久久久| 国产一区二区三区在线观看免费视频| 91福利精品第一导航| 国产农村妇女精品| 蜜臀av国产精品久久久久| 91在线国产观看| 国产亚洲精品福利| 日韩av午夜在线观看| 色婷婷精品久久二区二区蜜臀av| 久久影院视频免费| 午夜成人免费视频| 91免费看视频| 中文av字幕一区| 国产一区二区毛片| 亚洲影院久久精品| 成人永久免费视频| 精品久久久久av影院| 天堂蜜桃91精品| 色av一区二区| 亚洲视频在线观看三级| 国产成人免费视频| 久久亚洲一区二区三区四区| 美女脱光内衣内裤视频久久影院| 在线观看亚洲a| 亚洲视频在线一区观看| 懂色av中文字幕一区二区三区| 在线综合视频播放| 五月开心婷婷久久| 色999日韩国产欧美一区二区| 国产精品麻豆欧美日韩ww| 国产在线看一区| 日韩精品在线看片z| 视频一区二区三区在线| 欧美日韩综合色| 亚洲一区电影777| 91在线观看地址| 国产精品久久久久久久久久免费看| 国产精品一区二区无线| 2014亚洲片线观看视频免费| 国产在线日韩欧美| 精品国产乱码久久久久久闺蜜 | 日韩精品欧美精品| 欧美精品亚洲二区| 日韩国产欧美视频| 日韩一区二区三区av| 青娱乐精品在线视频| 日韩视频一区二区三区在线播放| 欧美aaa在线| 亚洲精品一区二区三区香蕉| 老司机免费视频一区二区| 日韩精品影音先锋| 国产精品一区在线| 国产精品久久久久aaaa| 99久久国产综合精品麻豆 | 秋霞国产午夜精品免费视频| 欧美一区二区大片| 久久成人18免费观看| 国产日韩影视精品| av网站免费线看精品| 一区二区三区欧美日韩| 欧美日韩黄色影视| 日本视频中文字幕一区二区三区| 日韩精品一区二区三区四区| 国产99久久久国产精品潘金| 自拍偷拍欧美精品| 欧美精品九九99久久| 精品无人码麻豆乱码1区2区| 中文av字幕一区| 欧美三级视频在线播放| 六月婷婷色综合| 中文av字幕一区| 欧美在线视频不卡| 紧缚奴在线一区二区三区| 国产精品三级视频| 欧美亚洲国产一区二区三区| 久久99国产精品免费| 国产精品久久久久久久久图文区| 欧美视频一区二区三区在线观看| 免费亚洲电影在线| 国产精品久久久久毛片软件| 精品1区2区3区| 国产高清不卡一区| 偷窥少妇高潮呻吟av久久免费 | 亚洲最新在线观看| 日韩免费在线观看| 99免费精品视频| 蜜桃视频一区二区| 自拍av一区二区三区| 欧美一区二区三区四区高清| 波多野结衣精品在线| 日本不卡一二三| 亚洲丝袜制服诱惑| 久久综合中文字幕| 欧美日韩国产美| 波多野结衣欧美| 激情综合五月天| 伊人性伊人情综合网| 国产喂奶挤奶一区二区三区|