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

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

?? sourcetests.java

?? html to xml convertor
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// HTMLParser Library $Name: v1_6 $ - 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/SourceTests.java,v $// $Author: derrickoswald $// $Date: 2004/07/31 16:42:31 $// $Revision: 1.18 $//// 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.BufferedInputStream;import java.io.ByteArrayInputStream;import java.io.IOException;import java.io.InputStreamReader;import java.net.MalformedURLException;import java.net.URL;import java.net.URLConnection;import org.htmlparser.lexer.InputStreamSource;import org.htmlparser.lexer.Stream;import org.htmlparser.lexer.Source;import org.htmlparser.lexer.StringSource;import org.htmlparser.tests.ParserTestCase;public class SourceTests extends ParserTestCase{    static    {        System.setProperty ("org.htmlparser.tests.lexerTests.SourceTests", "SourceTests");    }    /**     * 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";    /**     * Test the first level stream class.     */    public SourceTests (String name)    {        super (name);    }    /**     * Test initialization with a null value.     */    public void testInputStreamSourceNull () throws IOException    {        Source source;        source = new InputStreamSource (null);        assertTrue ("erroneous character", -1 == source.read ());    }    /**     * Test initialization of a InputStreamSource with a zero length byte array.     */    public void testInputStreamSourceEmpty () throws IOException    {        Source source;        source = new InputStreamSource (new Stream (new ByteArrayInputStream (new byte[0])), null);        assertTrue ("erroneous character", -1 == source.read ());    }    /**     * Test initialization of a InputStreamSource with an input stream having only one byte.     */    public void testInputStreamSourceOneByte () throws IOException    {        Source source;        source = new InputStreamSource (new Stream (new ByteArrayInputStream (new byte[] { (byte)0x42 })), null);        assertTrue ("erroneous character", 'B' == source.read ());        assertTrue ("extra character", -1 == source.read ());    }    /**     * Test closing a InputStreamSource.     */    public void testInputStreamSourceClose () throws IOException    {        Source source;        source = new InputStreamSource (new Stream (new ByteArrayInputStream ("hello word".getBytes ())), null);        assertTrue ("no character", -1 != source.read ());        source.destroy ();        try        {            source.read ();            fail ("not closed");        }        catch (IOException ioe)        {            // expected outcome        }   }    /**     * Test resetting a InputStreamSource.     */    public void testInputStreamSourceReset () throws IOException    {        String reference;        Source source;        StringBuffer buffer;        int c;        reference = "Now is the time for all good men to come to the aid of the party";        source = new InputStreamSource (new Stream (new ByteArrayInputStream (reference.getBytes (DEFAULT_CHARSET))), null);        buffer = new StringBuffer (reference.length ());        while (-1 != (c = source.read ()))            buffer.append ((char)c);        assertTrue ("string incorrect", reference.equals (buffer.toString ()));        source.reset ();        buffer.setLength (0);        while (-1 != (c = source.read ()))            buffer.append ((char)c);        assertTrue ("string incorrect", reference.equals (buffer.toString ()));        source.close ();    }    /**     * Test resetting a InputStreamSource in the middle of reading.     */    public void testInputStreamSourceMidReset () throws IOException    {        String reference;        Source source;        StringBuffer buffer;        int c;        reference = "Now is the time for all good men to come to the aid of the party";        source = new InputStreamSource (new Stream (new ByteArrayInputStream (reference.getBytes (DEFAULT_CHARSET))), null);        buffer = new StringBuffer (reference.length ());        for (int i = 0; i < 25; i++)            buffer.append ((char)source.read ());        source.reset ();        for (int i = 0; i < 25; i++)            source.read ();        while (-1 != (c = source.read ()))            buffer.append ((char)c);        assertTrue ("string incorrect", reference.equals (buffer.toString ()));        source.close ();    }    /**     * Test mark/reset of a InputStreamSource in the middle of reading.     */    public void testInputStreamSourceMarkReset () throws IOException    {        String reference;        Source source;        StringBuffer buffer;        int c;        reference = "Now is the time for all good men to come to the aid of the party";        source = new InputStreamSource (new Stream (new ByteArrayInputStream (reference.getBytes (DEFAULT_CHARSET))), null);        assertTrue ("not markable", source.markSupported ());        buffer = new StringBuffer (reference.length ());        for (int i = 0; i < 25; i++)            buffer.append ((char)source.read ());        source.mark (88);        for (int i = 0; i < 25; i++)            source.read ();        source.reset ();        while (-1 != (c = source.read ()))            buffer.append ((char)c);        assertTrue ("string incorrect", reference.equals (buffer.toString ()));        source.close ();    }    /**     * Test skipping a InputStreamSource.     */    public void testInputStreamSourceSkip () throws IOException    {        String part1;        String part2;        String part3;        String reference;        Source source;        StringBuffer buffer;        int c;        part1 = "Now is the time ";        part2 = "for all good men ";        part3 = "to come to the aid of the party";        reference = part1 + part2 + part3;        source = new InputStreamSource (new Stream (new ByteArrayInputStream (reference.getBytes (DEFAULT_CHARSET))), null);        buffer = new StringBuffer (reference.length ());        for (int i = 0; i < part1.length (); i++)            buffer.append ((char)source.read ());        source.skip (part2.length ());        while (-1 != (c = source.read ()))            buffer.append ((char)c);        assertTrue ("string incorrect", (part1 + part3).equals (buffer.toString ()));        source.close ();    }    /**     * Test multi-byte read with a InputStreamSource.     */    public void testInputStreamSourceMultByte () throws IOException    {        String reference;        Source source;        char[] buffer;        reference = "Now is the time for all good men to come to the aid of the party";        source = new InputStreamSource (new Stream (new ByteArrayInputStream (reference.getBytes (DEFAULT_CHARSET))), null);        buffer = new char[reference.length ()];        source.read (buffer, 0, buffer.length);        assertTrue ("string incorrect", reference.equals (new String (buffer)));        assertTrue ("extra character", -1 == source.read ());        source.close ();    }    /**     * Test positioned multi-byte read with a InputStreamSource.     */    public void testInputStreamSourcePositionedMultByte () throws IOException    {        String part1;        String part2;        String part3;        String reference;        Source source;        char[] buffer;        int length;        part1 = "Now is the time ";        part2 = "for all good men ";        part3 = "to come to the aid of the party";        reference = part1 + part2 + part3;        source = new InputStreamSource (new Stream (new ByteArrayInputStream (reference.getBytes (DEFAULT_CHARSET))), null);        buffer = new char[reference.length ()];        for (int i = 0; i < part1.length (); i++)            buffer[i] = (char)source.read ();        length = source.read (buffer, part1.length (), part2.length ());        assertTrue ("incorrect length", part2.length () == length);        length += part1.length ();        for (int i = 0; i < part3.length (); i++)            buffer[i + length] = (char)source.read ();        assertTrue ("string incorrect", reference.equals (new String (buffer)));        assertTrue ("extra character", -1 == source.read ());        source.close ();    }    /**     * Test ready of a InputStreamSource.     */    public void testInputStreamSourceReady () throws IOException    {        Source source;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久看人人爽人人| 亚洲成av人片一区二区三区| 在线观看亚洲成人| 不卡一区二区三区四区| 国产一二精品视频| 国产成人激情av| 国产盗摄视频一区二区三区| 国产精品资源网| 国产一区二区三区电影在线观看| 免费视频一区二区| 蜜臀av国产精品久久久久| 日韩国产欧美三级| 美女视频网站黄色亚洲| 激情五月婷婷综合| 成人久久久精品乱码一区二区三区| 国产老女人精品毛片久久| 国产精品性做久久久久久| 不卡av在线网| 欧美日韩一区二区三区高清| 欧美一区二区成人6969| 精品久久久久av影院| 国产午夜精品久久| 亚洲精品少妇30p| 天天影视网天天综合色在线播放| 视频一区免费在线观看| 免费成人在线播放| 国产在线视频不卡二| 99久久综合精品| 欧美午夜电影网| 精品国产凹凸成av人导航| 国产精品午夜电影| 天堂一区二区在线免费观看| 韩国一区二区视频| 91麻豆精品一区二区三区| 欧美片网站yy| 国产精品丝袜91| 青青草国产精品亚洲专区无| 懂色中文一区二区在线播放| 日本黄色一区二区| 亚洲精品在线三区| 亚洲精品国产成人久久av盗摄| 视频一区视频二区中文字幕| 成人免费va视频| 欧美成人国产一区二区| 亚洲区小说区图片区qvod| 日韩电影在线免费观看| 成人黄色电影在线| 欧美一区二区在线不卡| 亚洲欧美一区二区不卡| 久色婷婷小香蕉久久| 91在线视频在线| 国产亚洲综合av| 日本在线不卡视频一二三区| 91片黄在线观看| 国产色产综合产在线视频| 视频一区国产视频| 欧美性xxxxxxxx| 国产精品天天摸av网| 蜜桃91丨九色丨蝌蚪91桃色| 色美美综合视频| 国产精品国产自产拍在线| 国产一区二区三区四| 日韩视频一区二区三区| 五月婷婷色综合| 91国模大尺度私拍在线视频| 亚洲色图欧洲色图| gogogo免费视频观看亚洲一| 欧美极品xxx| 97精品国产97久久久久久久久久久久| 日韩欧美电影在线| 男女男精品视频| 日韩一卡二卡三卡| 麻豆国产91在线播放| 在线电影一区二区三区| 日韩福利电影在线| 欧美一二区视频| 日韩 欧美一区二区三区| 欧美日韩mp4| 奇米在线7777在线精品| 欧美一区二区免费观在线| 日日噜噜夜夜狠狠视频欧美人| 欧美三级中文字| 亚洲18色成人| 精品奇米国产一区二区三区| 久久99久久99| 国产色婷婷亚洲99精品小说| 成人动漫视频在线| 亚洲精品乱码久久久久久久久| 91成人在线免费观看| 亚洲一区中文日韩| 日韩一区二区视频| 国产一区二区免费在线| 国产日韩视频一区二区三区| www.在线欧美| 亚洲亚洲人成综合网络| 欧美高清dvd| 国内欧美视频一区二区| 国产精品久久久久影视| 欧美三级视频在线| 免费观看在线色综合| 精品福利在线导航| 不卡的av在线| 日韩二区在线观看| 欧美激情一区在线| 欧美系列日韩一区| 国产美女精品人人做人人爽| 国产精品色哟哟| 欧美日本国产视频| 国产精品77777| 亚洲午夜久久久久久久久久久| 日韩欧美一区二区在线视频| 国产精品原创巨作av| 一区二区三区四区中文字幕| 日韩免费看的电影| 色综合咪咪久久| 极品少妇xxxx偷拍精品少妇| 亚洲日本在线天堂| 精品国产电影一区二区| 色综合久久久久综合99| 精品制服美女丁香| 亚洲一区二区四区蜜桃| 久久九九久久九九| 4438亚洲最大| 99久久精品国产精品久久| 九九视频精品免费| 亚洲va国产天堂va久久en| 亚洲国产精品精华液2区45| 欧美一区二区三区四区高清| 日本乱人伦一区| 夫妻av一区二区| 激情都市一区二区| 亚洲综合偷拍欧美一区色| 国产精品午夜春色av| 久久久不卡影院| 精品美女一区二区| 日韩午夜电影在线观看| 欧美日韩性生活| 欧美最猛性xxxxx直播| 不卡电影一区二区三区| 成人午夜激情视频| 国产乱子伦视频一区二区三区| 日本欧美肥老太交大片| 亚洲va韩国va欧美va| 亚洲精品免费在线观看| 亚洲欧美日韩国产手机在线| 国产精品护士白丝一区av| 国产片一区二区| 久久久精品黄色| 久久网站热最新地址| 日韩精品一区国产麻豆| 欧美一区二区三区免费观看视频| 在线免费不卡视频| 欧美在线观看禁18| 欧日韩精品视频| 欧美美女网站色| 欧美放荡的少妇| 日韩欧美电影在线| 精品国产自在久精品国产| 日韩视频国产视频| 91精品免费在线| 日韩欧美专区在线| 日韩欧美在线影院| 久久亚洲精精品中文字幕早川悠里| 91精品福利在线一区二区三区| 欧美日韩黄色影视| 日韩视频中午一区| 久久久一区二区三区捆绑**| 欧美国产激情二区三区| 亚洲欧洲制服丝袜| 亚洲午夜羞羞片| 美日韩一区二区| 国产激情一区二区三区四区| 国产成人亚洲综合a∨婷婷| 99久久精品国产导航| 欧美日韩精品一区二区| 精品国产一区二区亚洲人成毛片 | 国产精品乱人伦一区二区| 中文字幕巨乱亚洲| 亚洲一区在线观看视频| 蜜桃av噜噜一区二区三区小说| 国产精品一品二品| 色香色香欲天天天影视综合网| 欧美猛男男办公室激情| 久久久欧美精品sm网站| 亚洲精品国产一区二区精华液| 午夜精品久久久久| 国产成人午夜高潮毛片| 在线观看国产一区二区| 2020日本不卡一区二区视频| 亚洲品质自拍视频网站| 毛片av一区二区三区| www.日韩av| 欧美大白屁股肥臀xxxxxx| 国产精品美女久久久久aⅴ| 视频一区中文字幕国产| av电影在线不卡| 精品久久99ma| 亚洲影院久久精品| 成人深夜在线观看| 精品久久久久久久久久久久包黑料 |