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

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

?? nrssdataextractor.java

?? Myjxta的源代碼 基于JXTA的P2P即時通信系統
?? JAVA
字號:
/**  Copyright (c) 2001 Sun Microsystems, Inc.  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 acknowledgment:*  "This product includes software developed by the*  Sun Microsystems, Inc. for Project JXTA."*  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 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 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.**  $Id: NRSSDataExtractor.java,v 1.2 2006/07/13 05:26:36 nano Exp $*///package net.java.netbeams.protocol;package net.jxta.myjxta.misc.beam;import org.xml.sax.InputSource;import javax.xml.parsers.DocumentBuilderFactory;import java.io.IOException;import java.io.InputStream;import java.net.URL;import java.net.URLConnection;/** * @author dave */public class NRSSDataExtractor {    /**     * Creates a new instance of NRSSDataExtractor     */    public NRSSDataExtractor() {    }    public static String getValueFromString(String input, String expression) {        String returnValue = new String();        //see http://www.docjar.com/html/api/java/io/Reader.java.html        java.io.StringReader sr = new java.io.StringReader(input);        //see http://www.docjar.com/html/api/org/xml/sax/InputSource.java.html        org.xml.sax.InputSource inputSource = new org.xml.sax.InputSource(sr);        try {            // Example used            // http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html// xxx: gonzo, 1.5 goodness/*            XPathFactory factory2=XPathFactory.newInstance();            XPath xPath = factory2.newXPath();            NamespaceContext namespaceContext=new NamespaceContextImpl(NameSpaceName, NameSpaceURL);            xPath.setNamespaceContext(namespaceContext);*/            // passed            //XPathExpression xPathExpression = xPath.compile("/rss/channel/item/description/nrss:metadata/nrss:arg[@n='size']");            // passed            //XPathExpression xPathExpression = xPath.compile("/rss/channel/item/description/nrss:data/nrss:content/nrss:argArray[@n='current']");            // passed            //XPathExpression xPathExpression = xPath.compile("/rss/channel/title");            //String expression = "/rss/channel/item/description/nrss:data/nrss:content/nrss:argArray[@n='current']";            //xPathExpression.evaluate(inputSource, returnType)            // See http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/xpath/package-summary.html// xxx: gonzo, 1.5 goodness/*            XPathExpression xPathExpression = xPath.compile(expression);            returnValue = xPathExpression.evaluate(inputSource);*/            returnValue = null;            // String returnValue = xPath.evaluate(expression, inputSource);            //is.close();            //System.out.println("value = "+value.toString());        } catch (Exception e) {            e.printStackTrace();        }        return returnValue;    }    // Example Used: http://www.idevelopment.info/data/Programming/java/xml/DOMExample.java    public static String getValueFromInputStream(InputStream is, String expression) {        String returnValue = new String();        try {            // Example used            // http://www.onjava.com/pub/a/onjava/2005/01/12/xpath.html// xxx: gonzo, 1.5 goodness/*            XPathFactory factory2=XPathFactory.newInstance();            XPath xPath = factory2.newXPath();            NamespaceContext namespaceContext=new NamespaceContextImpl(NameSpaceName, NameSpaceURL);            xPath.setNamespaceContext(namespaceContext);*/            // passed            //XPathExpression xPathExpression = xPath.compile("/rss/channel/item/description/nrss:metadata/nrss:arg[@n='size']");            // passed            //XPathExpression xPathExpression = xPath.compile("/rss/channel/item/description/nrss:data/nrss:content/nrss:argArray[@n='current']");            // passed            //XPathExpression xPathExpression = xPath.compile("/rss/channel/title");            InputSource inputSource = new InputSource(is);            //String expression = "/rss/channel/item/description/nrss:data/nrss:content/nrss:argArray[@n='current']";            //xPathExpression.evaluate(inputSource, returnType)            // See http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/xpath/package-summary.html// xxx: gonzo, 1.5 goodness/*            XPathExpression xPathExpression = xPath.compile(expression);            returnValue = xPathExpression.evaluate(inputSource);*/            returnValue = null;            // String returnValue = xPath.evaluate(expression, inputSource);            is.close();            //System.out.println("value = "+value.toString());        } catch (Exception e) {            e.printStackTrace();        }        return returnValue;    }    public static String getValueFromURL(String nrssURL, String expression) {        // get the NRSS        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();        try {            // Example used            // http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html            URL u = new URL(nrssURL);            URLConnection c = u.openConnection();            InputStream is = c.getInputStream();            return getValueFromInputStream(is, expression);        } catch (IOException e) {            e.printStackTrace();            // log.severe(e.toString());        } catch (Exception ea) {            // log.severe(ea.toString());            ea.printStackTrace();        }        return null;    }    public static void main(String[] args) {        String url = "http://fuzzy.sfbay.sun.com/~tl109030/samplenrss02.xml";        String expression = "/rss/channel/item/description/nrss:data/nrss:content/nrss:argArray[@n='current']/nrss:arg[@n='value']";        //String expression = "/rss/channel/title";        try {            String result = getValueFromURL(url, expression);            System.out.println("Result: " + result);        } catch (Exception e) {            e.printStackTrace();        }        try {            // Example used            // http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html            URL u = new URL(url);            URLConnection c = u.openConnection();            InputStream is = c.getInputStream();            System.out.println("getVAlueFromInputStream: " + getValueFromInputStream(is, expression));        } catch (IOException e) {            e.printStackTrace();            // log.severe(e.toString());        } catch (Exception ea) {            // log.severe(ea.toString());            ea.printStackTrace();        }//        System.err.println("Usage: java NRSS2Array <url> <expression>");        // add interface that handles InputStream    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲女同女同女同女同女同69| 91美女在线观看| 日韩欧美一级片| 免费成人在线播放| 亚洲精品在线电影| 99久久伊人精品| 亚洲成人动漫一区| 欧美一区二区三区人| 激情伊人五月天久久综合| 中文字幕免费不卡在线| 色婷婷av一区二区三区大白胸| 亚洲一级不卡视频| 日韩三级视频在线看| 国产成人在线色| 亚洲日本在线看| 日韩一区二区三区视频在线| 国产精品亚洲视频| 亚洲另类在线制服丝袜| 91精品国产色综合久久久蜜香臀| 国产一区二区在线看| 亚洲视频免费在线观看| 91精品久久久久久久91蜜桃| 国产成人亚洲综合a∨婷婷| 亚洲视频免费在线| 日韩一二三区视频| 99国产精品一区| 日韩高清一级片| 欧美激情一区三区| 欧美老女人第四色| 国产成人精品综合在线观看| 一区二区三区在线播放| 精品久久久久久久久久久院品网 | 中文字幕在线免费不卡| 欧美无砖专区一中文字| 国产电影一区二区三区| 亚洲不卡一区二区三区| 国产日韩欧美a| 欧美精品v日韩精品v韩国精品v| 成人性色生活片免费看爆迷你毛片| 亚洲国产综合视频在线观看| 国产农村妇女毛片精品久久麻豆| 欧美日韩国产成人在线免费| 风间由美中文字幕在线看视频国产欧美| 亚洲综合图片区| 中文字幕乱码一区二区免费| 欧美一区二区啪啪| 色噜噜久久综合| 国产99久久久国产精品| 日本三级亚洲精品| 亚洲不卡av一区二区三区| 国产精品盗摄一区二区三区| 精品日韩在线观看| 欧美久久婷婷综合色| 91麻豆精品视频| 成人h版在线观看| 国产在线乱码一区二区三区| 午夜电影久久久| 一区二区三区加勒比av| 国产精品三级久久久久三级| 精品欧美一区二区三区精品久久 | 国产精品中文字幕一区二区三区| 性做久久久久久免费观看 | 亚洲自拍与偷拍| 国产精品久久久久久久久动漫| 亚洲精品一区在线观看| 精品国产91洋老外米糕| 69堂成人精品免费视频| 在线观看日韩国产| 91偷拍与自偷拍精品| av不卡免费电影| 成人激情小说网站| 99视频超级精品| 99视频热这里只有精品免费| 99国产精品久久| 91一区二区三区在线播放| 成人av中文字幕| 91麻豆福利精品推荐| 日本韩国欧美一区| 欧洲精品一区二区三区在线观看| 色一区在线观看| 欧美网站一区二区| 在线播放国产精品二区一二区四区 | 欧美精品一区二区蜜臀亚洲| 日韩一卡二卡三卡| 精品免费日韩av| 2021久久国产精品不只是精品| 精品日韩99亚洲| 国产欧美日韩不卡| 日韩一区欧美一区| 亚洲一区二区三区不卡国产欧美| 五月天精品一区二区三区| 五月激情综合婷婷| 久久成人久久爱| 国产成人8x视频一区二区| 国产成人av一区| 一本一道久久a久久精品综合蜜臀| 欧美在线高清视频| 日韩一区二区三区在线| 欧美国产亚洲另类动漫| 亚洲欧美二区三区| 日韩精品一二区| 国产乱人伦偷精品视频免下载| 99久久亚洲一区二区三区青草| 欧美视频一区在线| 欧美xxxxxxxx| 亚洲色图.com| 美女一区二区在线观看| 风流少妇一区二区| 欧美三区在线视频| 国产亚洲一区二区在线观看| 亚洲另类一区二区| 精品中文字幕一区二区| 91丨porny丨中文| 欧美一区二区福利在线| 亚洲色图欧美在线| 韩国欧美国产一区| 欧美在线free| 国产人妖乱国产精品人妖| 一区二区三区精密机械公司| 国产在线一区观看| 欧美视频完全免费看| 国产亚洲制服色| 首页国产丝袜综合| av激情综合网| 久久色视频免费观看| 亚洲成年人网站在线观看| 国产不卡在线视频| 日韩视频一区在线观看| 亚洲免费高清视频在线| 国产一区二区三区日韩| 欧美日韩aaa| 日韩理论片在线| 国产精品亚洲一区二区三区在线| 欧美在线观看禁18| 中文字幕视频一区| 国内精品伊人久久久久av影院| 欧美天堂亚洲电影院在线播放| 国产欧美视频一区二区三区| 麻豆成人久久精品二区三区红| 色噜噜夜夜夜综合网| 国产精品久久久久婷婷| 极品少妇一区二区| 91精品国产欧美一区二区| 一区二区三区在线看| www.亚洲在线| 欧美国产1区2区| 国产最新精品免费| 欧美大胆人体bbbb| 日本视频中文字幕一区二区三区| 在线观看国产91| 亚洲精品免费在线观看| 成人黄色在线视频| 国产女人18水真多18精品一级做| 韩国精品一区二区| 久久影视一区二区| 加勒比av一区二区| 久久综合久色欧美综合狠狠| 美女免费视频一区| 欧美mv和日韩mv国产网站| 毛片不卡一区二区| 欧美成人精精品一区二区频| 日韩av电影一区| 91精品国产一区二区三区| 午夜视频一区二区| 91精品国产一区二区三区香蕉| 日韩精品三区四区| 欧美一区二区三区视频在线| 美女脱光内衣内裤视频久久影院| 欧美一二三在线| 精品在线播放免费| 久久嫩草精品久久久久| 国产伦精品一区二区三区视频青涩| 久久精品一区蜜桃臀影院| 国产成人免费在线视频| 国产精品嫩草影院com| www.成人网.com| 夜夜嗨av一区二区三区中文字幕| 在线观看亚洲精品| 无吗不卡中文字幕| 久久综合色综合88| 北岛玲一区二区三区四区| 亚洲日本va午夜在线影院| 在线视频综合导航| 日精品一区二区| 精品国产成人系列| www.在线欧美| 天天爽夜夜爽夜夜爽精品视频| 欧美一级欧美三级在线观看 | 中文字幕av一区二区三区高 | 首页国产丝袜综合| 欧美不卡在线视频| 国产精品资源在线看| 亚洲欧美日韩人成在线播放| 欧美日本在线播放| 精品一区二区在线免费观看| 国产精品美女久久久久aⅴ国产馆| 色综合天天性综合| 毛片av一区二区| 中文字幕日韩av资源站| 制服.丝袜.亚洲.中文.综合|