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

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

?? attribute.java

?? 本程序用于對(duì)頁面信息進(jìn)行提取并分析
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
// 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/Attribute.java,v $// $Author: derrickoswald $// $Date: 2005/11/15 02:09:10 $// $Revision: 1.8 $//// 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;import java.io.Serializable;/** * An attribute within a tag. * Holds the name, assignment string, value and quote character. * <p> * This class was made deliberately simple. Except for * {@link #setRawValue RawValue}, the properties are completely orthogonal, * that is: each property is independant of the others. This means you have * enough rope here to hang yourself, and it's very easy to create * malformed HTML. Where it's obvious, warnings and notes have been provided * in the setters javadocs, but it is up to you -- the programmer -- * to ensure that the contents of the four fields will yield valid HTML * (if that's what you want). * <p> * Be especially mindful of quotes and assignment strings. These are handled * by the constructors where it's obvious, but in general, you need to set * them explicitly when building an attribute. For example to construct * the attribute <b><code>label="A multi word value."</code></b> you could use: * <pre> *     attribute = new Attribute (); *     attribute.setName ("label"); *     attribute.setAssignment ("="); *     attribute.setValue ("A multi word value."); *     attribute.setQuote ('"'); * </pre> * or * <pre> *     attribute = new Attribute (); *     attribute.setName ("label"); *     attribute.setAssignment ("="); *     attribute.setRawValue ("A multi word value."); * </pre> * or * <pre> *     attribute = new Attribute ("label", "A multi word value."); * </pre> * Note that the assignment value and quoting need to be set separately when * building the attribute from scratch using the properties. * <p> * <table width="100.0%" align="Center" border="1"> *   <caption>Valid States for Attributes.</caption> *   <tr> *     <th align="Center">Description</th> *     <th align="Center">toString()</th> *     <th align="Center">Name</th> *     <th align="Center">Assignment</th> *     <th align="Center">Value</th> *     <th align="Center">Quote</th> *   </tr> *   <tr> *     <td align="Center">whitespace attribute</td> *     <td align="Center">value</td> *     <td align="Center"><code>null</code></td> *     <td align="Center"><code>null</code></td> *     <td align="Center">"value"</td> *     <td align="Center"><code>0</code></td> *   </tr> *   <tr> *     <td align="Center">standalone attribute</td> *     <td align="Center">name</td> *     <td align="Center">"name"</td> *     <td align="Center"><code>null</code></td> *     <td align="Center"><code>null</code></td> *     <td align="Center"><code>0</code></td> *   </tr> *   <tr> *     <td align="Center">empty attribute</td> *     <td align="Center">name=</td> *     <td align="Center">"name"</td> *     <td align="Center">"="</td> *     <td align="Center"><code>null</code></td> *     <td align="Center"><code>0</code></td> *   </tr> *   <tr> *     <td align="Center">empty single quoted attribute</td> *     <td align="Center">name=''</td> *     <td align="Center">"name"</td> *     <td align="Center">"="</td> *     <td align="Center"><code>null</code></td> *     <td align="Center"><code>'</code></td> *   </tr> *   <tr> *     <td align="Center">empty double quoted attribute</td> *     <td align="Center">name=""</td> *     <td align="Center">"name"</td> *     <td align="Center">"="</td> *     <td align="Center"><code>null</code></td> *     <td align="Center"><code>"</code></td> *   </tr> *   <tr> *     <td align="Center">naked attribute</td> *     <td align="Center">name=value</td> *     <td align="Center">"name"</td> *     <td align="Center">"="</td> *     <td align="Center">"value"</td> *     <td align="Center"><code>0</code></td> *   </tr> *   <tr> *     <td align="Center">single quoted attribute</td> *     <td align="Center">name='value'</td> *     <td align="Center">"name"</td> *     <td align="Center">"="</td> *     <td align="Center">"value"</td> *     <td align="Center"><code>'</code></td> *   </tr> *   <tr> *     <td align="Center">double quoted attribute</td> *     <td align="Center">name="value"</td> *     <td align="Center">"name"</td> *     <td align="Center">"="</td> *     <td align="Center">"value"</td> *     <td align="Center"><code>"</code></td> *   </tr> * </table> * <br>In words: * <br>If Name is null, and Assignment is null, and Quote is zero, *   it's whitepace and Value has the whitespace text -- value * <br>If Name is not null, and both Assignment and Value are null *   it's a standalone attribute -- name * <br>If Name is not null, and Assignment is an equals sign, and Quote is zero *   it's an empty attribute -- name= * <br>If Name is not null, and Assignment is an equals sign, *   and Value is "" or null, and Quote is ' *   it's an empty single quoted attribute -- name='' * <br>If Name is not null, and Assignment is an equals sign, *   and Value is "" or null, and Quote is " *   it's an empty double quoted attribute -- name="" * <br>If Name is not null, and Assignment is an equals sign, *   and Value is something, and Quote is zero *   it's a naked attribute -- name=value * <br>If Name is not null, and Assignment is an equals sign, *   and Value is something, and Quote is ' *   it's a single quoted attribute -- name='value' * <br>If Name is not null, and Assignment is an equals sign, *   and Value is something, and Quote is " *   it's a double quoted attribute -- name="value" * <br>All other states are invalid HTML. * <p> * From the <a href="http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2"> * HTML 4.01 Specification, W3C Recommendation 24 December 1999</a> * http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2:<p> * <cite> * 3.2.2 Attributes<p> * Elements may have associated properties, called attributes, which may * have values (by default, or set by authors or scripts). Attribute/value * pairs appear before the final ">" of an element's start tag. Any number * of (legal) attribute value pairs, separated by spaces, may appear in an * element's start tag. They may appear in any order.<p> * In this example, the id attribute is set for an H1 element: * <pre> * <code> * {@.html *  <H1 id="section1"> *  This is an identified heading thanks to the id attribute *  </H1>} * </code> * </pre> * By default, SGML requires that all attribute values be delimited using * either double quotation marks (ASCII decimal 34) or single quotation * marks (ASCII decimal 39). Single quote marks can be included within the * attribute value when the value is delimited by double quote marks, and * vice versa. Authors may also use numeric character references to * represent double quotes (&amp;#34;) and single quotes (&amp;#39;). * For doublequotes authors can also use the character entity reference * &amp;quot;.<p> * In certain cases, authors may specify the value of an attribute without * any quotation marks. The attribute value may only contain letters * (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), * periods (ASCII decimal 46), underscores (ASCII decimal 95), * and colons (ASCII decimal 58). We recommend using quotation marks even * when it is possible to eliminate them.<p> * Attribute names are always case-insensitive.<p> * Attribute values are generally case-insensitive. The definition of each * attribute in the reference manual indicates whether its value is * case-insensitive.<p> * All the attributes defined by this specification are listed in the * <a href="http://www.w3.org/TR/html4/index/attributes.html">attribute * index</a>.<p> * </cite> * <p> */public class Attribute    implements        Serializable{    /**     * The name of this attribute.     * The part before the equals sign, or the stand-alone attribute.     * This will be <code>null</code> if the attribute is whitespace.     */    protected String mName;    /**     * The assignment string of the attribute.     * The equals sign.     * This will be <code>null</code> if the attribute is a     * stand-alone attribute.     */    protected String mAssignment;    /**     * The value of the attribute.     * The part after the equals sign.     * This will be <code>null</code> if the attribute is an empty or     * stand-alone attribute.     */    protected String mValue;    /**     * The quote, if any, surrounding the value of the attribute, if any.     * This will be zero if there are no quotes around the value.     */    protected char mQuote;    /**     * Create an attribute with the name, assignment, value and quote given.     * If the quote value is zero, assigns the value using {@link #setRawValue}     * which sets the quote character to a proper value if necessary.     * @param name The name of this attribute.     * @param assignment The assignment string of this attribute.     * @param value The value of this attribute.     * @param quote The quote around the value of this attribute.     */    public Attribute (String name, String assignment, String value, char quote)    {        setName (name);        setAssignment (assignment);        if (0 == quote)            setRawValue (value);        else        {            setValue (value);            setQuote (quote);        }    }    /**     * Create an attribute with the name, value and quote given.     * Uses an equals sign as the assignment string if the value is not     * <code>null</code>, and calls {@link #setRawValue} to get the     * correct quoting if <code>quote</code> is zero.     * @param name The name of this attribute.     * @param value The value of this attribute.     * @param quote The quote around the value of this attribute.     */    public Attribute (String name, String value, char quote)    {        this (name, (null == value ? "" : "="), value, quote);    }    /**     * Create a whitespace attribute with the value given.     * @param value The value of this attribute.     * @exception IllegalArgumentException if the value contains other than     * whitespace. To set a real value use {@link #Attribute(String,String)}.     */    public Attribute (String value)        throws            IllegalArgumentException    {        if (0 != value.trim ().length ())            throw new IllegalArgumentException ("non whitespace value");        else        {            setName (null);            setAssignment (null);            setValue (value);            setQuote ((char)0);        }    }    /**     * Create an attribute with the name and value given.     * Uses an equals sign as the assignment string if the value is not     * <code>null</code>, and calls {@link #setRawValue} to get the     * correct quoting.     * @param name The name of this attribute.     * @param value The value of this attribute.     */    public Attribute (String name, String value)    {        this (name, (null == value ? "" : "="), value, (char)0);    }    /**     * Create an attribute with the name, assignment string and value given.     * Calls {@link #setRawValue} to get the correct quoting.     * @param name The name of this attribute.     * @param assignment The assignment string of this attribute.     * @param value The value of this attribute.     */    public Attribute (String name, String assignment, String value)    {        this (name, assignment, value, (char)0);    }    /**     * Create an empty attribute.     * This will provide "" from the {@link #toString} and     * {@link #toString(StringBuffer)} methods.     */    public Attribute ()    {        this (null, null, null, (char)0);    }    /**     * Get the name of this attribute.     * The part before the equals sign, or the contents of the     * stand-alone attribute.     * @return The name, or <code>null</code> if it's just a whitepace     * 'attribute'.     * @see #setName     */    public String getName ()    {        return (mName);    }    /**     * Get the name of this attribute.     * @param buffer The buffer to place the name in.     * @see #getName()     * @see #setName     */    public void getName (StringBuffer buffer)    {        if (null != mName)            buffer.append (mName);    }    /**     * Set the name of this attribute.     * Set the part before the equals sign, or the contents of the     * stand-alone attribute.     * <em>WARNING:</em> Setting this to <code>null</code> can result in     * malformed HTML if the assignment string is not <code>null</code>.     * @param name The new name.     * @see #getName     * @see #getName(StringBuffer)     */    public void setName (String name)    {        mName = name;    }    /**     * Get the assignment string of this attribute.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线播放中文一区| 亚洲国产日韩精品| 亚洲视频一区二区在线| 亚洲女爱视频在线| 视频一区二区不卡| 精品伊人久久久久7777人| 国产成人亚洲精品青草天美| eeuss国产一区二区三区| 欧美色中文字幕| 久久久噜噜噜久噜久久综合| 亚洲欧美另类久久久精品| 亚洲成av人综合在线观看| 久久99国产精品免费| 99久久伊人精品| 日韩午夜激情电影| 国产精品国产三级国产a| 国产一区二区伦理片| 粉嫩一区二区三区在线看| 一本大道av一区二区在线播放| 欧美一级一级性生活免费录像| 久久精品视频一区二区三区| 亚洲精品乱码久久久久久黑人 | 国产一区二区91| 色综合色狠狠综合色| 日韩精品一区二区三区在线播放| 综合久久一区二区三区| 久久国产乱子精品免费女| 91小视频免费观看| 2017欧美狠狠色| 视频一区免费在线观看| 成人app网站| 欧美不卡一二三| 一区二区三区精品视频在线| 国产中文一区二区三区| 欧美日韩亚洲不卡| 国产精品沙发午睡系列990531| 亚洲一区二区av在线| 福利一区二区在线| 日韩欧美第一区| 性感美女久久精品| 色欲综合视频天天天| 国产亲近乱来精品视频| 日韩电影免费一区| 在线观看成人小视频| 中文无字幕一区二区三区| 经典三级视频一区| 欧美美女bb生活片| 亚洲综合成人在线| aaa欧美日韩| 国产日产精品1区| 久久福利视频一区二区| 欧美人妖巨大在线| 亚洲国产另类av| 欧美中文字幕久久| 成人欧美一区二区三区| 国产很黄免费观看久久| 欧美成人vr18sexvr| 日韩电影在线一区二区三区| 欧美视频在线一区二区三区| 成人欧美一区二区三区黑人麻豆 | 国产日韩欧美精品电影三级在线| 日韩高清不卡一区| 欧美日高清视频| 亚洲成a天堂v人片| 欧美日韩另类国产亚洲欧美一级| 亚洲精品国产精品乱码不99| 91网站视频在线观看| 国产精品白丝在线| 成人国产一区二区三区精品| 久久久久久久久免费| 国产美女娇喘av呻吟久久| 久久精品一区二区| 国产美女久久久久| 欧美国产成人在线| 国产精一区二区三区| 久久久久久久久久久久电影 | 国产欧美精品一区| 国产精品系列在线观看| 久久亚洲二区三区| 成人综合婷婷国产精品久久蜜臀| 亚洲精品在线免费观看视频| 国产精品综合网| 久久精品视频在线看| 成人av免费在线| 亚洲欧美一区二区三区孕妇| 成人午夜电影久久影院| 亚洲欧美在线高清| 色噜噜狠狠色综合中国| 亚洲国产另类av| 日韩亚洲欧美中文三级| 黄色精品一二区| 国产日韩精品久久久| a在线欧美一区| 亚洲欧美视频在线观看| 在线一区二区三区| 亚洲福利一区二区三区| 日韩欧美色综合网站| 国产91精品露脸国语对白| 日韩一区欧美小说| 91国产福利在线| 日韩激情视频在线观看| 精品美女在线播放| av电影天堂一区二区在线| 一区二区三区在线视频播放 | 水蜜桃久久夜色精品一区的特点| 欧美高清视频www夜色资源网| 久久丁香综合五月国产三级网站| 精品国产凹凸成av人导航| 粉嫩一区二区三区性色av| 亚洲日本欧美天堂| 欧美日本一区二区三区| 狠狠狠色丁香婷婷综合激情| 国产精品福利一区二区| 欧洲激情一区二区| 久久电影网电视剧免费观看| 国产精品福利av| 日韩视频免费观看高清完整版在线观看 | 老汉av免费一区二区三区| 欧美—级在线免费片| 欧美日韩一区二区在线观看视频| 久久精品国产亚洲一区二区三区| 欧美激情中文字幕一区二区| 欧美日韩久久一区| 国产精品白丝av| 亚洲va韩国va欧美va精品| 国产亚洲欧美色| 欧美精品粉嫩高潮一区二区| 国产成人精品免费视频网站| 亚洲高清在线精品| 日本一区二区三级电影在线观看| 欧美一区二区三区爱爱| 国产亚洲精品超碰| 亚洲伊人伊色伊影伊综合网| 亚洲图片欧美综合| 国产成人av一区二区三区在线| 国产精选一区二区三区| 在线免费观看视频一区| 91精品国产91综合久久蜜臀| 国产欧美精品区一区二区三区 | 日韩视频在线一区二区| 91精品国产综合久久久蜜臀图片 | 亚洲精品久久7777| 青青草91视频| 91老司机福利 在线| 久久在线免费观看| 一区二区在线观看视频 | 日本在线不卡视频一二三区| 午夜精品爽啪视频| 美女视频黄频大全不卡视频在线播放| 国产精品99久久久久久宅男| 欧美视频一二三区| 狠狠色丁香久久婷婷综合_中| 久久精子c满五个校花| 国产欧美一区二区精品性色 | 国产精品拍天天在线| 欧美刺激脚交jootjob| 欧美中文字幕亚洲一区二区va在线 | 国产区在线观看成人精品| 日韩在线播放一区二区| 国产美女娇喘av呻吟久久| 欧美精品久久99久久在免费线 | 91激情在线视频| 国产精品久久久久久久蜜臀 | 激情丁香综合五月| 亚洲欧美日韩久久精品| 亚洲精品自拍动漫在线| 2020日本不卡一区二区视频| 日韩视频在线永久播放| 欧美狂野另类xxxxoooo| 色婷婷av一区| 91天堂素人约啪| caoporm超碰国产精品| 成人午夜视频免费看| 国产一区二区在线观看免费| 久久精品国产亚洲a| 欧美精品第一页| √…a在线天堂一区| 成人久久久精品乱码一区二区三区| 久久久亚洲精品石原莉奈| av不卡免费电影| 精品久久久久久久久久久久久久久久久 | 播五月开心婷婷综合| 国产精品美女www爽爽爽| 国产一区二区视频在线播放| 久久色视频免费观看| 国产在线精品免费av| 国产欧美精品一区二区三区四区 | 99精品视频在线免费观看| 亚洲素人一区二区| 精品国产精品网麻豆系列| 日本黄色一区二区| 在线亚洲高清视频| 欧美丝袜丝nylons| 欧美电影在线免费观看| 欧美色图片你懂的| 欧美肥大bbwbbw高潮| 日韩视频不卡中文| 精品剧情v国产在线观看在线| 4438成人网| 欧美在线免费观看亚洲|