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

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

?? pagetests.java

?? 本程序用于對頁面信息進行提取并分析
?? JAVA
字號:
// HTMLParser Library $Name: v1_6_20060319 $ - A java-based parser for HTML// http://sourceforge.org/projects/htmlparser// Copyright (C) 2004 Derrick Oswald//// Revision Control Information//// $Source: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/PageTests.java,v $// $Author: derrickoswald $// $Date: 2005/05/15 11:49:05 $// $Revision: 1.19 $//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation; either// version 2.1 of the License, or (at your option) any later version.//// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU// Lesser General Public License for more details.//// You should have received a copy of the GNU Lesser General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA//package org.htmlparser.tests.lexerTests;import java.io.IOException;import java.net.URL;import java.net.URLConnection;import org.htmlparser.lexer.Page;import org.htmlparser.tests.ParserTestCase;import org.htmlparser.util.ParserException;public class PageTests extends ParserTestCase{    static    {        System.setProperty ("org.htmlparser.tests.lexerTests.PageTests", "PageTests");    }    /**     * The default charset.     * This should be <code>ISO-8859-1</code>,     * see RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt?number=2616) section 3.7.1     * Another alias is "8859_1".     */    public static final String DEFAULT_CHARSET = "ISO-8859-1";    /**     * Base URI for absolute URL tests.     */    static final String BASEURI = "http://a/b/c/d;p?q";    /**     * Page for absolute URL tests.     */    public static Page mPage;    static    {        mPage = new Page ();        mPage.setBaseUrl (BASEURI);    }            /**     * Test the third level page class.     */    public PageTests (String name)    {        super (name);    }    /**     * Test initialization with a null value.     */    public void testNull () throws ParserException    {        try        {            new Page ((URLConnection)null);            assertTrue ("null value in constructor", false);        }        catch (IllegalArgumentException iae)        {            // expected outcome        }        try        {            new Page ((String)null);            assertTrue ("null value in constructor", false);        }        catch (IllegalArgumentException iae)        {            // expected outcome        }    }    /**     * Test initialization with a real value.     */    public void testURLConnection () throws ParserException, IOException    {        String link;        URL url;        link = "http://www.ibm.com/jp/";        url = new URL (link);        new Page (url.openConnection ());    }    /**     * Test initialization with non-existant URL.     */    public void testBadURLConnection () throws IOException    {        String link;        URL url;        link = "http://www.bigbogosity.org/";        url = new URL (link);        try        {           new Page (url.openConnection ());        }        catch (ParserException pe)        {            // expected response        }    }    //    // Tests from Appendix C Examples of Resolving Relative URI References    // RFC 2396 Uniform Resource Identifiers (URI): Generic Syntax    // T. Berners-Lee et al.    // http://www.ietf.org/rfc/rfc2396.txt    // Within an object with a well-defined base URI of    // http://a/b/c/d;p?q    // the relative URI would be resolved as follows:    // C.1.  Normal Examples    //  g:h           =  g:h    //  g             =  http://a/b/c/g    //  ./g           =  http://a/b/c/g    //  g/            =  http://a/b/c/g/    //  /g            =  http://a/g    //  //g           =  http://g    //  ?y            =  http://a/b/c/?y    //  g?y           =  http://a/b/c/g?y    //  #s            =  (current document)#s    //  g#s           =  http://a/b/c/g#s    //  g?y#s         =  http://a/b/c/g?y#s    //  ;x            =  http://a/b/c/;x    //  g;x           =  http://a/b/c/g;x    //  g;x?y#s       =  http://a/b/c/g;x?y#s    //  .             =  http://a/b/c/    //  ./            =  http://a/b/c/    //  ..            =  http://a/b/    //  ../           =  http://a/b/    //  ../g          =  http://a/b/g    //  ../..         =  http://a/    //  ../../        =  http://a/    //  ../../g       =  http://a/g    public void test1 () throws ParserException    {        assertEquals ("test1 failed", "https:h", mPage.getAbsoluteURL ("https:h"));    }    public void test2 () throws ParserException    {        assertEquals ("test2 failed", "http://a/b/c/g", mPage.getAbsoluteURL ("g"));    }    public void test3 () throws ParserException    {        assertEquals ("test3 failed", "http://a/b/c/g", mPage.getAbsoluteURL ("./g"));    }    public void test4 () throws ParserException    {        assertEquals ("test4 failed", "http://a/b/c/g/", mPage.getAbsoluteURL ("g/"));    }    public void test5 () throws ParserException    {        assertEquals ("test5 failed", "http://a/g", mPage.getAbsoluteURL ("/g"));    }    public void test6 () throws ParserException    {        assertEquals ("test6 failed", "http://g", mPage.getAbsoluteURL ("//g"));    }    public void test7 () throws ParserException    {        assertEquals ("test7 failed", "http://a/b/c/?y", mPage.getAbsoluteURL ("?y"));    }    public void test8 () throws ParserException    {        assertEquals ("test8 failed", "http://a/b/c/g?y", mPage.getAbsoluteURL ("g?y"));    }    public void test9 () throws ParserException    {        assertEquals ("test9 failed", "https:h", mPage.getAbsoluteURL ("https:h"));    }    public void test10 () throws ParserException    {        assertEquals ("test10 failed", "https:h", mPage.getAbsoluteURL ("https:h"));    }    //  #s            =  (current document)#s    public void test11 () throws ParserException    {        assertEquals ("test11 failed", "http://a/b/c/g#s", mPage.getAbsoluteURL ("g#s"));    }    public void test12 () throws ParserException    {        assertEquals ("test12 failed", "http://a/b/c/g?y#s", mPage.getAbsoluteURL ("g?y#s"));    }    public void test13 () throws ParserException    {        assertEquals ("test13 failed", "http://a/b/c/;x", mPage.getAbsoluteURL (";x"));    }    public void test14 () throws ParserException    {        assertEquals ("test14 failed", "http://a/b/c/g;x", mPage.getAbsoluteURL ("g;x"));    }    public void test15 () throws ParserException    {        assertEquals ("test15 failed", "http://a/b/c/g;x?y#s", mPage.getAbsoluteURL ("g;x?y#s"));    }    public void test16 () throws ParserException    {        assertEquals ("test16 failed", "http://a/b/c/", mPage.getAbsoluteURL ("."));    }    public void test17 () throws ParserException    {        assertEquals ("test17 failed", "http://a/b/c/", mPage.getAbsoluteURL ("./"));    }    public void test18 () throws ParserException    {        assertEquals ("test18 failed", "http://a/b/", mPage.getAbsoluteURL (".."));    }    public void test19 () throws ParserException    {        assertEquals ("test19 failed", "http://a/b/", mPage.getAbsoluteURL ("../"));    }    public void test20 () throws ParserException    {        assertEquals ("test20 failed", "http://a/b/g", mPage.getAbsoluteURL ("../g"));    }    public void test21 () throws ParserException    {        assertEquals ("test21 failed", "http://a/", mPage.getAbsoluteURL ("../.."));    }    public void test22 () throws ParserException    {        assertEquals ("test22 failed", "http://a/g", mPage.getAbsoluteURL ("../../g"));    }    // C.2.  Abnormal Examples    //   Although the following abnormal examples are unlikely to occur in    //   normal practice, all URI parsers should be capable of resolving them    //   consistently.  Each example uses the same base as above.    //    //   An empty reference refers to the start of the current document.    //    //      <>            =  (current document)    //    //   Parsers must be careful in handling the case where there are more    //   relative path ".." segments than there are hierarchical levels in the    //   base URI's path.  Note that the ".." syntax cannot be used to change    //   the authority component of a URI.    //    //      ../../../g    =  http://a/../g    //      ../../../../g =  http://a/../../g    //    //   In practice, some implementations strip leading relative symbolic    //   elements (".", "..") after applying a relative URI calculation, based    //   on the theory that compensating for obvious author errors is better    //   than allowing the request to fail.  Thus, the above two references    //   will be interpreted as "http://a/g" by some implementations.    //    //   Similarly, parsers must avoid treating "." and ".." as special when    //   they are not complete components of a relative path.    //    //      /./g          =  http://a/./g    //      /../g         =  http://a/../g    //      g.            =  http://a/b/c/g.    //      .g            =  http://a/b/c/.g    //      g..           =  http://a/b/c/g..    //      ..g           =  http://a/b/c/..g    //    //   Less likely are cases where the relative URI uses unnecessary or    //   nonsensical forms of the "." and ".." complete path segments.    //    //      ./../g        =  http://a/b/g    //      ./g/.         =  http://a/b/c/g/    //      g/./h         =  http://a/b/c/g/h    //      g/../h        =  http://a/b/c/h    //      g;x=1/./y     =  http://a/b/c/g;x=1/y    //      g;x=1/../y    =  http://a/b/c/y    //    //   All client applications remove the query component from the base URI    //   before resolving relative URI.  However, some applications fail to    //   separate the reference's query and/or fragment components from a    //   relative path before merging it with the base path.  This error is    //   rarely noticed, since typical usage of a fragment never includes the    //   hierarchy ("/") character, and the query component is not normally    //   used within relative references.    //    //      g?y/./x       =  http://a/b/c/g?y/./x    //      g?y/../x      =  http://a/b/c/g?y/../x    //      g#s/./x       =  http://a/b/c/g#s/./x    //      g#s/../x      =  http://a/b/c/g#s/../x    //    //   Some parsers allow the scheme name to be present in a relative URI if    //   it is the same as the base URI scheme.  This is considered to be a    //   loophole in prior specifications of partial URI [RFC1630]. Its use    //   should be avoided.    //    //      http:g        =  http:g           ; for validating parsers    //                    |  http://a/b/c/g   ; for backwards compatibility//    public void test23 () throws HTMLParserException//    {//        assertEquals ("test23 failed", "http://a/../g", mPage.getAbsoluteURL ("../../../g"));//    }//    public void test24 () throws HTMLParserException//    {//        assertEquals ("test24 failed", "http://a/../../g", mPage.getAbsoluteURL ("../../../../g"));//    }    public void test23 () throws ParserException    {        assertEquals ("test23 failed", "http://a/g", mPage.getAbsoluteURL ("../../../g"));    }    public void test24 () throws ParserException    {        assertEquals ("test24 failed", "http://a/g", mPage.getAbsoluteURL ("../../../../g"));    }    public void test25 () throws ParserException    {        assertEquals ("test25 failed", "http://a/./g", mPage.getAbsoluteURL ("/./g"));    }    public void test26 () throws ParserException    {        assertEquals ("test26 failed", "http://a/../g", mPage.getAbsoluteURL ("/../g"));    }    public void test27 () throws ParserException    {        assertEquals ("test27 failed", "http://a/b/c/g.", mPage.getAbsoluteURL ("g."));    }    public void test28 () throws ParserException    {        assertEquals ("test28 failed", "http://a/b/c/.g", mPage.getAbsoluteURL (".g"));    }    public void test29 () throws ParserException    {        assertEquals ("test29 failed", "http://a/b/c/g..", mPage.getAbsoluteURL ("g.."));    }    public void test30 () throws ParserException    {        assertEquals ("test30 failed", "http://a/b/c/..g", mPage.getAbsoluteURL ("..g"));    }    public void test31 () throws ParserException    {        assertEquals ("test31 failed", "http://a/b/g", mPage.getAbsoluteURL ("./../g"));    }    public void test32 () throws ParserException    {        assertEquals ("test32 failed", "http://a/b/c/g/", mPage.getAbsoluteURL ("./g/."));    }    public void test33 () throws ParserException    {        assertEquals ("test33 failed", "http://a/b/c/g/h", mPage.getAbsoluteURL ("g/./h"));    }    public void test34 () throws ParserException    {        assertEquals ("test34 failed", "http://a/b/c/h", mPage.getAbsoluteURL ("g/../h"));    }    public void test35 () throws ParserException    {        assertEquals ("test35 failed", "http://a/b/c/g;x=1/y", mPage.getAbsoluteURL ("g;x=1/./y"));    }    public void test36 () throws ParserException    {        assertEquals ("test36 failed", "http://a/b/c/y", mPage.getAbsoluteURL ("g;x=1/../y"));    }    public void test37 () throws ParserException    {        assertEquals ("test37 failed", "http://a/b/c/g?y/./x", mPage.getAbsoluteURL ("g?y/./x"));    }    public void test38 () throws ParserException    {        assertEquals ("test38 failed", "http://a/b/c/g?y/../x", mPage.getAbsoluteURL ("g?y/../x"));    }    public void test39 () throws ParserException    {        assertEquals ("test39 failed", "http://a/b/c/g#s/./x", mPage.getAbsoluteURL ("g#s/./x"));    }    public void test40 () throws ParserException    {        assertEquals ("test40 failed", "http://a/b/c/g#s/../x", mPage.getAbsoluteURL ("g#s/../x"));    }//    public void test41 () throws HTMLParserException//    {//        assertEquals ("test41 failed", "http:g", mPage.getAbsoluteURL ("http:g"));//    }    public void test41 () throws ParserException    {        assertEquals ("test41 failed", "http://a/b/c/g", mPage.getAbsoluteURL ("http:g"));    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线电影一区二区三区| 国产在线精品一区在线观看麻豆| 麻豆精品国产91久久久久久| 国产91高潮流白浆在线麻豆| 日韩欧美国产综合在线一区二区三区| 亚洲大片免费看| 欧洲人成人精品| 亚洲一区二区黄色| 在线播放日韩导航| 日本中文字幕一区二区视频| 欧美日韩国产一级| 国内精品国产三级国产a久久| 91精品黄色片免费大全| 日产精品久久久久久久性色| 经典三级一区二区| 激情图片小说一区| 国产精品一区不卡| 韩国精品主播一区二区在线观看| 污片在线观看一区二区| 视频一区二区三区中文字幕| 日韩激情一二三区| 国产呦萝稀缺另类资源| 亚洲精品亚洲人成人网在线播放| 国产精品国模大尺度视频| 欧美国产一区视频在线观看| 国产成人综合网| 国产精品色婷婷| 在线播放国产精品二区一二区四区| 欧美另类z0zxhd电影| 精品人伦一区二区色婷婷| 2021久久国产精品不只是精品| 国产精品久线观看视频| 国产精品网友自拍| 日韩中文字幕1| 色婷婷亚洲婷婷| 欧美性一级生活| 久久久亚洲高清| 日韩高清一区在线| 色域天天综合网| 国产日产精品一区| 日韩精品一区第一页| 成人美女视频在线观看| 欧美日韩亚洲综合一区二区三区| 成人免费在线视频| 麻豆国产精品一区二区三区| 色狠狠一区二区三区香蕉| 国产福利91精品| 一区二区三区四区中文字幕| 青青青伊人色综合久久| 91性感美女视频| 一区二区视频免费在线观看| 欧美mv和日韩mv的网站| aaa国产一区| 久久精品国产99久久6| 国产精品成人一区二区三区夜夜夜| 欧美人妖巨大在线| eeuss鲁片一区二区三区| 日韩极品在线观看| 亚洲综合色成人| 国产电影一区在线| 精品日韩在线观看| 精彩视频一区二区三区| 日韩一区二区精品葵司在线| 久久9热精品视频| 欧美国产精品v| 成人免费毛片嘿嘿连载视频| 精品欧美一区二区久久| 国产一区二区三区免费观看| 久久午夜老司机| 日本欧美一区二区三区| 欧美成人aa大片| 99视频国产精品| 午夜精品影院在线观看| 日韩精品一区二区三区中文精品| 蜜臀va亚洲va欧美va天堂| 久久久99精品久久| 激情文学综合丁香| 一区二区三区日韩| 欧美一级高清片| 久久成人精品无人区| 国产精品美女视频| 777午夜精品免费视频| 国模套图日韩精品一区二区 | 国产精品九色蝌蚪自拍| 偷拍一区二区三区| 亚洲mv在线观看| 国产性天天综合网| 亚洲欧美日韩中文字幕一区二区三区| 日本成人在线电影网| 国产三级三级三级精品8ⅰ区| 91美女在线观看| 国产99久久久久久免费看农村| 国产成人在线看| 亚洲国产日产av| 91小宝寻花一区二区三区| 亚洲国产美国国产综合一区二区| 精品少妇一区二区三区日产乱码 | 日韩精品电影一区亚洲| 国产乱码精品1区2区3区| 成人免费视频在线观看| 精品国产免费一区二区三区香蕉| 在线观看av一区| 亚洲激情av在线| 欧美一级理论片| 成人蜜臀av电影| 国产一区二区导航在线播放| av在线一区二区三区| ●精品国产综合乱码久久久久| 韩国在线一区二区| 天天av天天翘天天综合网 | 成人激情文学综合网| 国产不卡在线播放| 麻豆久久一区二区| 色噜噜狠狠成人网p站| 精品亚洲国产成人av制服丝袜| 久久综合色天天久久综合图片| 欧洲一区二区三区在线| 欧美一a一片一级一片| 色就色 综合激情| 日韩亚洲欧美在线| 日韩欧美中文一区二区| 中文字幕永久在线不卡| 中文字幕在线一区| 亚洲第一综合色| 久久99国产精品麻豆| 国产精品羞羞答答xxdd| 色综合色综合色综合色综合色综合 | 国产不卡视频在线播放| 国产精品一级二级三级| 一本色道亚洲精品aⅴ| 欧美猛男gaygay网站| 欧美高清激情brazzers| 国产午夜亚洲精品羞羞网站| 亚洲国产成人av网| 国产成人免费视频| 丁香天五香天堂综合| 欧美四级电影网| 久久精品亚洲国产奇米99| 亚洲一级不卡视频| 亚洲高清免费观看高清完整版在线观看| 丁香亚洲综合激情啪啪综合| 91麻豆精品国产91久久久资源速度 | 国产精品国产三级国产专播品爱网| 日韩激情一二三区| 99精品偷自拍| 精品国产污污免费网站入口| xf在线a精品一区二区视频网站| 一区二区三区国产精华| 国产激情视频一区二区在线观看 | 亚洲一区影音先锋| 黄色小说综合网站| 91在线视频网址| 国产精品久久三| 卡一卡二国产精品| 欧美一区二区在线观看| 欧美日韩不卡一区二区| 最新日韩av在线| 韩国精品主播一区二区在线观看| 欧美四级电影网| 亚洲一区二区三区不卡国产欧美| 国产不卡视频一区二区三区| 91精品国产高清一区二区三区| 亚洲欧洲综合另类| 国产九色sp调教91| 欧美一区日韩一区| 午夜欧美2019年伦理| 91啪九色porn原创视频在线观看| 国产精品色婷婷| 国产白丝网站精品污在线入口| 国产日韩欧美不卡在线| 精品一区二区三区av| 91精品国产综合久久久久| 亚洲免费观看视频| 波多野结衣的一区二区三区| 日韩欧美第一区| 激情欧美日韩一区二区| 日韩一区二区免费在线电影| 男人的天堂久久精品| 欧美日韩一区视频| 艳妇臀荡乳欲伦亚洲一区| 91精品婷婷国产综合久久竹菊| 亚洲色图欧洲色图婷婷| 极品少妇一区二区三区精品视频| 在线中文字幕一区| 久久亚洲综合色| 国产一区日韩二区欧美三区| www国产亚洲精品久久麻豆| 精品一区二区久久久| www精品美女久久久tv| 亚洲1区2区3区4区| 日韩西西人体444www| 日本不卡视频在线| 欧美国产一区二区在线观看| 成人精品一区二区三区四区| 亚洲男女一区二区三区| 91黄色激情网站| 亚洲欧美经典视频| 欧美中文字幕一区| 日日夜夜免费精品| 日韩美女在线视频|