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

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

?? parser.java

?? linux下編程用 編譯軟件
?? JAVA
字號:
/* Parser.java -- HTML parser   Copyright (C) 2005 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package javax.swing.text.html.parser;import java.io.IOException;import java.io.Reader;import javax.swing.text.ChangedCharSetException;import javax.swing.text.SimpleAttributeSet;/* * FOR DEVELOPERS: To avoid regression, please run the package test * textsuite/javax.swing.text.html.parser/AllParserTests after your * modifications. *//** * <p>A simple error-tolerant HTML parser that uses a DTD document * to access data on the possible tokens, arguments and syntax.</p> * <p> The parser reads an HTML content from a Reader and calls various * notifying methods (which should be overridden in a subclass) * when tags or data are encountered.</p> * <p>Some HTML elements need no opening or closing tags. The * task of this parser is to invoke the tag handling methods also when * the tags are not explicitly specified and must be supposed using * information, stored in the DTD. * For  example, parsing the document * <p>&lt;table&gt;&lt;tr&gt;&lt;td&gt;a&lt;td&gt;b&lt;td&gt;c&lt;/tr&gt; <br> * will invoke exactly the handling methods exactly in the same order * (and with the same parameters) as if parsing the document: <br> * <em>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;table&gt;&lt; * tbody&gt;</em>&lt;tr&gt;&lt;td&gt;a<em>&lt;/td&gt;</em>&lt;td&gt;b<em> * &lt;/td&gt;</em>&lt;td&gt;c<em>&lt;/td&gt;&lt;/tr&gt;</em>&lt; * <em>/tbody&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</em></p> * (supposed tags are given in italics). The parser also supports * obsolete elements of HTML syntax.<p> * </p> * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) */public class Parser   implements DTDConstants{  /**   * The document template description that will be used to parse the documents.   */  protected DTD dtd;  /**   * The value of this field determines whether or not the Parser will be   * strict in enforcing SGML compatibility. The default value is false,   * stating that the parser should do everything to parse and get at least   * some information even from the incorrectly written HTML input.   */  protected boolean strict;  /**   * The package level reference to the working HTML parser in this   * implementation.   */  final gnu.javax.swing.text.html.parser.support.Parser gnu;  /**   * Creates a new parser that uses the given DTD to access data on the   * possible tokens, arguments and syntax. There is no single - step way   * to get a default DTD; you must either refer to the implementation -   * specific packages, write your own DTD or obtain the working instance   * of parser in other way, for example, by calling   * {@link javax.swing.text.html.HTMLEditorKit#getParser() }.   * @param a_dtd A DTD to use.   */  public Parser(DTD a_dtd)  {    dtd = a_dtd;    final Parser j = this;    gnu =      new gnu.javax.swing.text.html.parser.support.Parser(dtd)        {          protected final void handleComment(char[] comment)          {            j.handleComment(comment);          }          protected final void handleEOFInComment()          {            j.handleEOFInComment();          }          protected final void handleEmptyTag(TagElement tag)            throws javax.swing.text.ChangedCharSetException          {            j.handleEmptyTag(tag);          }          protected final void handleStartTag(TagElement tag)          {            j.handleStartTag(tag);          }          protected final void handleEndTag(TagElement tag)          {            j.handleEndTag(tag);          }          protected final void handleError(int line, String message)          {            j.handleError(line, message);          }          protected final void handleText(char[] text)          {            j.handleText(text);          }          protected final void handleTitle(char[] title)          {            j.handleTitle(title);          }          protected final void markFirstTime(Element element)          {            j.markFirstTime(element);          }          protected final void startTag(TagElement tag)            throws ChangedCharSetException          {            j.startTag(tag);          }          protected final void endTag(boolean omitted)          {            j.endTag(omitted);          }          protected TagElement makeTag(Element element)          {            return j.makeTag(element);          }          protected TagElement makeTag(Element element, boolean isSupposed)          {            return j.makeTag(element, isSupposed);          }        };  }  /**   * Parse the HTML text, calling various methods in response to the   * occurence of the corresponding HTML constructions.   * @param reader The reader to read the source HTML from.   * @throws IOException If the reader throws one.   */  public synchronized void parse(Reader reader)    throws IOException  {    gnu.parse(reader);  }  /**   * Parses DTD markup declaration. Currently returns without action.   * @return null.   * @throws java.io.IOException   */  public String parseDTDMarkup()    throws IOException  {    return gnu.parseDTDMarkup();  }  /**   * Parse DTD document declarations. Currently only parses the document   * type declaration markup.   * @param strBuff   * @return true if this is a valid DTD markup declaration.   * @throws IOException   */  protected boolean parseMarkupDeclarations(StringBuffer strBuff)    throws IOException  {    return gnu.parseMarkupDeclarations(strBuff);  }  /**   * Get the attributes of the current tag.   * @return The attribute set, representing the attributes of the current tag.   */  protected SimpleAttributeSet getAttributes()  {    return gnu.getAttributes();  }  /**   * Get the number of the document line being parsed.   * @return The current line.   */  protected int getCurrentLine()  {    return gnu.hTag.where.beginLine;  }  /**   * Get the current position in the document being parsed.   * @return The current position.   */  protected int getCurrentPos()  {    return gnu.hTag.where.startPosition;  }  /**   * The method is called when the HTML end (closing) tag is found or if   * the parser concludes that the one should be present in the   * current position. The method is called immediatly   * before calling the handleEndTag().   * @param omitted True if the tag is no actually present in the document,   * but is supposed by the parser (like &lt;/html&gt; at the end of the   * document).   */  protected void endTag(boolean omitted)  {    // This default implementation does nothing.  }  /**   * Invokes the error handler. The default method in this implementation   * finally delegates the call to handleError, also providing the number of the   * current line.   */  protected void error(String msg)  {    gnu.error(msg);  }  /**   * Invokes the error handler. The default method in this implementation   * finally delegates the call to error (msg+": '"+invalid+"'").   */  protected void error(String msg, String invalid)  {    gnu.error(msg, invalid);  }  /**   * Invokes the error handler. The default method in this implementation   * finally delegates the call to error (parm1+" "+ parm2+" "+ parm3).   */  protected void error(String parm1, String parm2, String parm3)  {    gnu.error(parm1, parm2, parm3);  }  /**   * Invokes the error handler. The default method in this implementation   * finally delegates the call to error   * (parm1+" "+ parm2+" "+ parm3+" "+ parm4).   */  protected void error(String parm1, String parm2, String parm3, String parm4)  {    gnu.error(parm1, parm2, parm3, parm4);  }  /**   * In this implementation, this is never called and returns without action.   */  protected void flushAttributes()  {    gnu.flushAttributes();  }  /**   * Handle HTML comment. The default method returns without action.   * @param comment The comment being handled   */  protected void handleComment(char[] comment)  {    // This default implementation does nothing.  }  /**   * This is additionally called in when the HTML content terminates   * without closing the HTML comment. This can only happen if the   * HTML document contains errors (for example, the closing --;gt is   * missing. The default method calls the error handler.   */  protected void handleEOFInComment()  {    gnu.error("Unclosed comment");  }  /**   * Handle the tag with no content, like &lt;br&gt;. The method is   * called for the elements that, in accordance with the current DTD,   * has an empty content.   * @param tag The tag being handled.   * @throws javax.swing.text.ChangedCharSetException   */  protected void handleEmptyTag(TagElement tag)    throws ChangedCharSetException  {    // This default implementation does nothing.  }  /**   * The method is called when the HTML closing tag ((like &lt;/table&gt;)   * is found or if the parser concludes that the one should be present   * in the current position.   * @param tag The tag being handled   */  protected void handleEndTag(TagElement tag)  {    // This default implementation does nothing.  }  /* Handle error that has occured in the given line. */  protected void handleError(int line, String message)  {    // This default implementation does nothing.  }  /**   * The method is called when the HTML opening tag ((like &lt;table&gt;)   * is found or if the parser concludes that the one should be present   * in the current position.   * @param tag The tag being handled   */  protected void handleStartTag(TagElement tag)  {    // This default implementation does nothing.  }  /**   * Handle the text section.   * <p> For non-preformatted section, the parser replaces   * \t, \r and \n by spaces and then multiple spaces   * by a single space. Additionaly, all whitespace around   * tags is discarded.   * </p>   * <p> For pre-formatted text (inside TEXAREA and PRE), the parser preserves   * all tabs and spaces, but removes <b>one</b>  bounding \r, \n or \r\n,   * if it is present. Additionally, it replaces each occurence of \r or \r\n   * by a single \n.</p>   *   * @param text A section text.   */  protected void handleText(char[] text)  {    // This default implementation does nothing.  }  /**   * Handle HTML &lt;title&gt; tag. This method is invoked when   * both title starting and closing tags are already behind.   * The passed argument contains the concatenation of all   * title text sections.   * @param title The title text.   */  protected void handleTitle(char[] title)  {    // This default implementation does nothing.  }  /**   * Constructs the tag from the given element. In this implementation,   * this is defined, but never called.   * @param element the base element of the tag.   * @return the tag   */  protected TagElement makeTag(Element element)  {    return makeTag(element, false);  }  /**   * Constructs the tag from the given element.   * @param element the tag base {@link javax.swing.text.html.parser.Element}   * @param isSupposed true if the tag is not actually present in the   * html input, but the parser supposes that it should to occur in   * the current location.   * @return the tag   */  protected TagElement makeTag(Element element, boolean isSupposed)  {    return new TagElement(element, isSupposed);  }  /**   * This is called when the tag, representing the given element,   * occurs first time in the document.   * @param element   */  protected void markFirstTime(Element element)  {    // This default implementation does nothing.  }  /**   * The method is called when the HTML opening tag ((like &lt;table&gt;)   * is found or if the parser concludes that the one should be present   * in the current position. The method is called immediately before   * calling the handleStartTag.   * @param tag The tag   */  protected void startTag(TagElement tag)    throws ChangedCharSetException  {    // This default implementation does nothing.  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩中文字幕一区| 欧美这里有精品| 日产国产高清一区二区三区| 综合分类小说区另类春色亚洲小说欧美| 日韩欧美成人一区二区| 2020国产精品自拍| 日本午夜一本久久久综合| 欧美图区在线视频| 色就色 综合激情| 不卡欧美aaaaa| 成人av高清在线| 成人黄色国产精品网站大全在线免费观看| 国产一区二区三区日韩| 国产伦理精品不卡| 国产91综合网| 99re8在线精品视频免费播放| 成人成人成人在线视频| 91小视频在线观看| 91在线国产福利| 欧美色图在线观看| 91精品免费观看| 精品国产乱码久久久久久蜜臀| 久久久久综合网| 欧美激情自拍偷拍| 亚洲精品视频自拍| 亚洲成人av福利| 青青草国产精品97视觉盛宴| 久久成人羞羞网站| 成人妖精视频yjsp地址| 日本韩国精品在线| 欧美午夜精品久久久久久孕妇| 欧美日韩不卡一区二区| 日韩欧美中文字幕一区| 久久久精品黄色| 亚洲三级理论片| 奇米综合一区二区三区精品视频| 狠狠色综合日日| 91一区一区三区| 91精品国产综合久久国产大片| 精品国产一区二区精华| 国产精品美女久久久久久久久久久| 亚洲免费视频中文字幕| 日韩av中文字幕一区二区三区| 国产高清久久久| 在线观看视频一区二区欧美日韩| 日韩视频一区在线观看| 国产精品久久久久久久久晋中 | 不卡一区二区在线| 欧美老肥妇做.爰bbww视频| 宅男噜噜噜66一区二区66| 国产女同性恋一区二区| 午夜精品福利久久久| 国产91色综合久久免费分享| 欧美日韩久久久| 欧美高清在线精品一区| 日韩av在线免费观看不卡| 99精品久久免费看蜜臀剧情介绍| 欧美一区二区三区视频免费| 中文字幕一区二区三区在线观看| 午夜精品久久久久久久久久久| 国产成人午夜电影网| 欧美精品日韩一区| 中文字幕一区在线观看视频| 美女视频黄 久久| 色8久久精品久久久久久蜜| 精品国产免费视频| 午夜精品久久久久影视| 91啪在线观看| 337p日本欧洲亚洲大胆色噜噜| 亚洲午夜久久久久中文字幕久| 日韩精品一区国产麻豆| 午夜久久久久久久久久一区二区| 毛片一区二区三区| 91免费精品国自产拍在线不卡| 91精品国产综合久久香蕉麻豆 | 色婷婷激情久久| 91精品在线观看入口| 午夜电影一区二区三区| 国产精品久久久久aaaa| 中文字幕一区日韩精品欧美| 另类综合日韩欧美亚洲| 91成人国产精品| 国产精品视频在线看| 久久精品国产99| 欧美电影一区二区| 亚洲欧美成aⅴ人在线观看| 国产91在线观看丝袜| 精品国产乱子伦一区| 免费观看久久久4p| 欧美乱熟臀69xxxxxx| 亚洲日本免费电影| 成人精品小蝌蚪| 国产日本欧美一区二区| 激情丁香综合五月| 26uuu亚洲综合色欧美| 久久精品久久99精品久久| 欧美肥妇bbw| 日韩精品欧美精品| 免费久久精品视频| 国产尤物一区二区| 久久不见久久见免费视频1| 秋霞午夜鲁丝一区二区老狼| 白白色亚洲国产精品| 国产呦精品一区二区三区网站| 国产片一区二区三区| 欧美三区在线视频| 北条麻妃一区二区三区| 中文字幕一区二区不卡| 欧美主播一区二区三区美女| 日韩精品乱码免费| 日韩欧美国产综合| 国产.欧美.日韩| 蜜乳av一区二区三区| 性做久久久久久久久| 亚洲免费观看高清完整| 国产精品久久久久久久久果冻传媒| 欧美r级在线观看| 日本高清不卡视频| 天天色综合成人网| 久久久久久影视| 久久久久久电影| 亚洲电影在线播放| 欧美一级专区免费大片| 国产欧美一区二区精品性| 日本美女一区二区| 欧美色图在线观看| **性色生活片久久毛片| 精品国产制服丝袜高跟| 午夜视频在线观看一区二区| 一本久久精品一区二区| 欧美精品一区二区三区一线天视频| 亚洲一区二区三区四区在线观看 | 中文字幕中文乱码欧美一区二区| 亚洲精品一区二区三区蜜桃下载 | 亚洲第一成年网| 日本一区二区三区四区在线视频| 久久精品人人做| 一区二区三区蜜桃| 蜜臂av日日欢夜夜爽一区| 国产成人免费av在线| 欧美日韩精品系列| 欧美一区二区三区在| 最新欧美精品一区二区三区| 国模一区二区三区白浆| 国产精品久久久久久户外露出 | 欧美日韩亚洲综合一区二区三区| 日韩电影在线一区二区三区| 精品国产在天天线2019| 99re热这里只有精品视频| 美女诱惑一区二区| 国产精品理论在线观看| 欧美日本乱大交xxxxx| 国产精品一区二区在线看| 夜夜精品视频一区二区| 欧美大尺度电影在线| 色综合天天做天天爱| 色猫猫国产区一区二在线视频| 日韩国产欧美三级| 国产精品久久久久一区二区三区共 | 韩国av一区二区三区| 亚洲丝袜美腿综合| 日韩欧美亚洲一区二区| 91色在线porny| 国内久久婷婷综合| 亚洲成人www| 亚洲三级小视频| 国产亚洲精品bt天堂精选| 欧美高清视频一二三区| 99re成人在线| 国产河南妇女毛片精品久久久| 丝袜亚洲另类丝袜在线| 亚洲男人天堂av网| 国产三级三级三级精品8ⅰ区| 欧美另类videos死尸| 色综合久久中文综合久久97 | 日韩免费性生活视频播放| 色呦呦日韩精品| 国产91高潮流白浆在线麻豆| 看电视剧不卡顿的网站| 亚洲福中文字幕伊人影院| 一区在线观看视频| 久久人人爽人人爽| 欧美三区在线观看| 成人免费视频国产在线观看| 亚洲午夜一区二区| 国产欧美一区二区精品久导航 | 欧美激情艳妇裸体舞| 日韩欧美一级在线播放| 日本乱码高清不卡字幕| 性做久久久久久久久| 制服丝袜亚洲色图| 色婷婷av一区二区三区gif| 不卡的看片网站| 国产精品一区二区久激情瑜伽| 日本特黄久久久高潮| 亚洲成a人在线观看| 亚洲激情av在线| 一色桃子久久精品亚洲| 亚洲欧美综合色| 国产精品国产馆在线真实露脸|