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

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

?? resource.java

?? jxta平臺(tái)的開發(fā)包
?? JAVA
?? 第 1 頁 / 共 3 頁
字號(hào):
        List values = getAll(key, (d != null) ? d.toString() : null);        return Conversion.toClasses(values);    }    /**     * Specifies a named resource to the null value.     *     * @param       key     specified resource name     */        public void set(String key) {        set(key, null);    }    /**     * Specifies a named resource to the provided value.     *     * @param       key     specified resource name     * @param       value   specified resource value     */        public void set(String key, String value) {        synchronized (this.root) {            String k = key;            Object o = getValue(k);                        if ((o = getValue(k)) == null) {                String l = k;                int i = 0;                while ((o = getValue(l)) == null &&                    i > -1) {                    i = l.lastIndexOf(ELEMENT_DELIMITER);                    l = l.substring(0, i);                }                if (o == null) {                    o = this.root;                }                                int j = 0;                while (j > -1) {                    j = k.indexOf(ELEMENT_DELIMITER, i + ELEMENT_DELIMITER.length());                                        String m = j > -1 ?                        k.substring(i + ELEMENT_DELIMITER.length(), i) :                        k.substring(i + ELEMENT_DELIMITER.length());                                        if (m.startsWith(ATTRIBUTE_DELIMITER)) {                        ((Element)o).setAttribute(m.substring(ATTRIBUTE_DELIMITER.length()), "");                    } else {                        ((Element)o).appendChild(((Element)o).getOwnerDocument().createElement(m));                    }                                        o = getValue(j > -1 ? k.substring(0, j) + m : k);                    if (j > -1) {                        i = j;                    }                }            }            if (o != null) {                if (o instanceof Attr) {                    Attr a = (Attr)o;                    Element p = a.getOwnerElement();                    if (value != null) {                        try {                            p.setAttribute(a.getName(), value);                        } catch (DOMException de) {                        }                    } else {                        try {                            p.removeAttribute(a.getName());                        } catch (DOMException de) {                        }                    }                } else if (o instanceof Element) {                    Element e = (Element)o;                    if (value != null) {                        try {                            e.setTextContent(value);                        } catch (DOMException de) {                        }                    } else {                        try {                            e.getParentNode().removeChild(e);                        } catch (DOMException de) {                        }                    }                }            }        }    }    /**     * Accessor to a named resource.     *     * @param       key     specified resource name     * @return              resource value as a {@link java.util.List}     */        public List getAll(String key) {        return getAll(key, null);    }        /**     * Accessor to a named resource.     *     * @param       key     specified resource name     * @param       d       specified default value     * @return              resource value as a {@link java.util.List} or the     *                      specified default value if the named resource value     *                      is not resolvible.     */    public List getAll(String key, String d) {        return getValues(key, d);    }    /**     * Resource containment validator.      *     * @param       key     specified resource name     * @return              containment test results     */        public boolean contains(String key) {        return get(key) != null;    }    /**     * Accessor to the {@link java.lang.String} representation of this instance.     *     * @return              {@link java.lang.String} representation of this instance     */        public String toString() {        StringBuffer sb = new StringBuffer();        if (this.root.hasChildNodes()) {            Node n = this.root.getFirstChild();            while (n != null) {                if (n instanceof Element) {                    if (sb.length() > 0) {                        sb.append(NEW_LINE);            }                    sb.append(toString((Element)n));        }                n = n.getNextSibling();            }    }        return sb.toString();    }         private void process(Object resource)    throws ResourceNotFoundException {        process(resource, null);    }    private void process(Object resource, Class clazz)    throws ResourceNotFoundException {        if (!this.resources.contains(resource)) {            Element el = null;            Exception ex = null;            if (resource instanceof URL) {                try {                    el = getRootElement((URL)resource);                } catch (SAXException se) {                    ex = se;                } catch (IOException ioe) {                    ex = ioe;                }            } else if (resource instanceof String) {                if (clazz == null) {                    clazz = Resource.class;                }                try {                    el = getRootElement(clazz.getResourceAsStream((String)resource));                } catch (SAXException se) {                    ex = se;                } catch (IOException ioe) {                    ex = ioe;                }            } else if (resource instanceof InputStream) {                try {                    el = getRootElement((InputStream)resource);                } catch (SAXException se) {                    ex = se;                } catch (IOException ioe) {                    ex = ioe;                }                resource = new String("InputStream." + System.currentTimeMillis());            }            if (el != null &&                ex == null) {                load(resource, el);            } else {                throw new ResourceNotFoundException(EXCEPTION_PREFIX + ": " +                                                    resource.toString(), ex);            }        }    }    private Element getRootElement(URL resource)    throws SAXException, IOException {        return getRootElement(resource.openStream());    }    private Element getRootElement(InputStream is)    throws SAXException, IOException {        return getDocumentBuilder().parse(is).getDocumentElement();    }    private synchronized DocumentBuilder getDocumentBuilder() {        if (this.db == null) {            try {                this.db = DocumentBuilderFactory.newInstance().newDocumentBuilder();            } catch (ParserConfigurationException pce) {            }        }        return this.db;    }    private void load(Object resource, Element element) {        if (resources != null &&            element != null) {            synchronized (lock) {                Document d = this.root.getOwnerDocument();                boolean isValid = false;                                try {                    this.root.appendChild(d.importNode(element, true));                                        isValid = true;                } catch (DOMException de) {                }                                if (isValid) {                this.resources.add(resource);                }            }        }    }    private String getValue(String key, String d) {        String v = null;        Object o = getValue(key);        if (o != null) {            if (o instanceof Attr) {                v = ((Attr)o).getValue();            } else if (o instanceof Element) {                v = textToString((Element)o);            }        }                return Util.expand(v != null ? v : d);    }    private Object getValue(String key) {        Object o = null;        // xxx: key munging, may not work with non-default root elements        key = DOT + key;                    try {            o = getXPath().evaluate(key, this.root, XPathConstants.NODE);        } catch (XPathExpressionException xpee) {        }        return o;    }    private List getValues(String key, String d) {        List v = new ArrayList();        Object o = null;        for (Iterator vi = getValues(key).iterator(); vi.hasNext(); ) {            o = vi.next();            if (o != null) {		String nv = null;                if (o instanceof Attr) {		    nv = ((Attr)o).getValue();                } else if (o instanceof Element) {                    Node n = ((Element)o).getFirstChild();		    if (n != null) {                        try {			    nv = n.getNodeValue();                        } catch (DOMException de) {			}                    }                }		if (nv != null) {		    v.add(Util.expand(nv));		}            }        }        if (v.size() == 0 &&            d != null) {            v.add(Util.expand(d));        }        return v;    }    private List getValues(String key) {        List v = new ArrayList();        NodeList nl = null;        // xxx: key munging, may not work with non-default root elements        key = DOT + key;            try {            nl = (NodeList)getXPath().evaluate(key, this.root, XPathConstants.NODESET);        } catch (XPathExpressionException xee) {        }        for (int i = 0; nl != null && i < nl.getLength(); i++) {            v.add((Node)nl.item(i));    }        return v;        }    private synchronized XPath getXPath() {        return (this.xp != null ?            this.xp : (this.xp = XPathFactory.newInstance().newXPath()));    }    private Document getRootDocument() {        return getRootDocument(true);    }    private Document getRootDocument(boolean isClone) {        Document d = null;        if (isClone) {            d = getDocumentBuilder().newDocument();                        try {                d.appendChild(this.root.cloneNode(true));            } catch (DOMException de) {            }        } else if ((d = this.root.getOwnerDocument()) == null) {            d = getDocumentBuilder().newDocument();                        try {                d.appendChild(this.root);            } catch (DOMException de) {            }        }        return d;    }      private String toString(Element e) {        String s = null;        Transformer t = null;                try {            t = TransformerFactory.newInstance().newTransformer();        } catch (TransformerFactoryConfigurationError tfce) {        } catch (TransformerConfigurationException tce) {        }                if (t != null) {            StringWriter w = new StringWriter();                        try {                t.transform(new DOMSource(e), new StreamResult(w));            } catch (TransformerException te) {            }                        s = w.toString();        }                return s;    }        private String textToString(Element e) {        StringBuffer sb = new StringBuffer();        NodeList cnl = e.getChildNodes();                        for (int i = 0; i < cnl.getLength(); i++) {            Node cn = (Node)cnl.item(i);                        if (cn.getNodeType() == Node.TEXT_NODE ||                cn.getNodeType() == Node.CDATA_SECTION_NODE) {                sb.append(cn.getTextContent().trim());            }        }                return sb.toString().trim();    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品免费视频一区| 欧美三区在线视频| 17c精品麻豆一区二区免费| 国产a久久麻豆| 国产精品欧美久久久久无广告 | 欧美日韩国产123区| 亚洲激情六月丁香| 56国语精品自产拍在线观看| 精品一区中文字幕| 国产精品色哟哟网站| 91成人免费电影| 免费成人结看片| 日本一二三不卡| 在线免费观看日本一区| 日韩av一区二区在线影视| 欧美精品一区视频| 91猫先生在线| 日本午夜一区二区| 中文字幕av一区二区三区免费看 | 国产成人精品1024| 亚洲在线观看免费视频| 中文字幕免费不卡在线| 91在线观看一区二区| 午夜精品福利一区二区三区av| 久久综合久久99| 91福利在线免费观看| 久久精品国产亚洲一区二区三区| 中文字幕乱码一区二区免费| 欧美日韩一区小说| 国产麻豆视频精品| 亚洲国产综合人成综合网站| 精品国产免费久久| 欧美综合亚洲图片综合区| 久久国产成人午夜av影院| 国产精品国产成人国产三级| 欧美一级午夜免费电影| 94色蜜桃网一区二区三区| 久久精工是国产品牌吗| 亚洲永久精品大片| 中文字幕欧美激情| 2023国产精品自拍| 欧美精品欧美精品系列| 成人免费毛片a| 久久99深爱久久99精品| 亚洲国产日韩a在线播放| 国产欧美一区二区精品婷婷| 欧美精品在线观看一区二区| eeuss鲁一区二区三区| 乱中年女人伦av一区二区| 亚洲国产精品久久久久婷婷884| 国产精品网站在线观看| 欧美精品一区二| 日韩一区二区在线看| 91福利国产成人精品照片| 成人sese在线| 国产九色精品成人porny| 日本大胆欧美人术艺术动态| 亚洲午夜电影网| √…a在线天堂一区| 中文久久乱码一区二区| 久久综合九色综合久久久精品综合| 91精品中文字幕一区二区三区| 99视频国产精品| 国产成人99久久亚洲综合精品| 蜜臀av性久久久久蜜臀aⅴ四虎| 一区二区成人在线视频 | 久久久久久久久97黄色工厂| 欧美不卡在线视频| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲福利视频导航| 亚洲一区二区三区四区的| 亚洲精品精品亚洲| 亚洲一区电影777| 亚洲一区二区精品视频| 亚洲一区二区三区美女| 一区二区激情小说| 五月综合激情网| 免费人成精品欧美精品| 蜜臀久久99精品久久久画质超高清| 日韩电影在线观看一区| 蜜臀精品一区二区三区在线观看| 男男成人高潮片免费网站| 9久草视频在线视频精品| 高清不卡在线观看| 懂色av一区二区三区免费看| 成人黄色av电影| 色综合天天性综合| 在线视频你懂得一区| 欧美日韩国产综合一区二区三区| 在线播放91灌醉迷j高跟美女 | 一区二区三区四区在线| 亚洲综合偷拍欧美一区色| 亚洲成人av一区| 日本欧美在线观看| 高清国产一区二区三区| 日本二三区不卡| 欧美一区二区不卡视频| 国产日韩一级二级三级| 一区二区三区波多野结衣在线观看| 亚洲永久精品国产| 激情亚洲综合在线| thepron国产精品| 欧美性淫爽ww久久久久无| 日韩午夜激情av| 日本一区二区三区在线观看| 亚洲精品国产视频| 久久成人综合网| 成人的网站免费观看| 欧美日韩亚洲不卡| 久久亚洲一级片| 亚洲一线二线三线视频| 久久精品国产99久久6| 成人av免费网站| 91精品欧美福利在线观看 | 国产精品电影一区二区| 亚洲国产欧美另类丝袜| 国产一区二区三区精品欧美日韩一区二区三区 | 日韩视频国产视频| 日韩一区中文字幕| 同产精品九九九| 风间由美性色一区二区三区| 欧洲国产伦久久久久久久| 久久久精品欧美丰满| 亚洲自拍欧美精品| 国产高清视频一区| 91麻豆精品久久久久蜜臀| 中文字幕日韩av资源站| 精品一区二区三区蜜桃| 欧美视频一区二区三区在线观看| 久久网站最新地址| 日韩成人一级大片| 色婷婷综合久久| 国产午夜精品一区二区三区嫩草| 亚洲午夜一二三区视频| 成人激情动漫在线观看| 日韩欧美亚洲一区二区| 亚洲国产欧美一区二区三区丁香婷| 国产aⅴ综合色| 久久综合视频网| 日韩精品欧美精品| 欧美视频一二三区| 亚洲欧美日韩在线播放| 国产精品一卡二卡| 一区二区三区不卡在线观看| 国产一区 二区 三区一级| 在线播放日韩导航| 一区二区三区蜜桃网| a亚洲天堂av| 国产网站一区二区| 精品一区二区三区蜜桃| 日韩一级片在线播放| 亚洲高清免费观看高清完整版在线观看| 99视频一区二区| 国产精品九色蝌蚪自拍| 成人黄色综合网站| 中文字幕国产一区| 懂色av一区二区三区免费观看 | 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 中文字幕的久久| 国产乱码精品1区2区3区| 久久中文娱乐网| 国产精品99久久久| 国产清纯白嫩初高生在线观看91 | 综合久久久久久| 成人毛片在线观看| 国产精品国产馆在线真实露脸| 成人午夜免费视频| 亚洲欧美怡红院| 色呦呦国产精品| 亚洲图片欧美综合| 欧美视频第二页| 亚洲高清视频的网址| 欧美另类高清zo欧美| 日韩在线播放一区二区| 日韩一区二区三区视频在线| 久久激情五月婷婷| 久久精品视频在线免费观看| 不卡视频一二三四| 亚洲免费在线电影| 欧美性三三影院| 麻豆精品久久久| 久久久久青草大香线综合精品| 国产成人午夜视频| 亚洲天堂a在线| 7777精品伊人久久久大香线蕉的| 奇米精品一区二区三区在线观看| 久久亚洲精品小早川怜子| 白白色 亚洲乱淫| 亚洲高清在线精品| 精品国产制服丝袜高跟| 国产成a人亚洲精品| 亚洲精品乱码久久久久久| 91精品午夜视频| 国产精品一区二区男女羞羞无遮挡| 综合精品久久久| 欧美一三区三区四区免费在线看| 国产精品一卡二卡| 亚洲高清久久久| 国产欧美日韩在线视频| 在线观看91视频|