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

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

?? attribute.java

?? 本程序用于對頁面信息進(jìn)行提取并分析
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
     * This is usually just an equals sign, but in poorly formed attributes it     * can include whitespace on either or both sides of an equals sign.     * @return The assignment string.     * @see #setAssignment     */    public String getAssignment ()    {        return (mAssignment);    }    /**     * Get the assignment string of this attribute.     * @param buffer The buffer to place the assignment string in.     * @see #getAssignment()     * @see #setAssignment     */    public void getAssignment (StringBuffer buffer)    {        if (null != mAssignment)            buffer.append (mAssignment);    }    /**     * Set the assignment string of this attribute.     * <em>WARNING:</em> Setting this property to other than an equals sign     * or <code>null</code> will result in malformed HTML. In the case of a     * <code>null</code>, the {@link  #setValue value} should also be set to     * <code>null</code>.     * @param assignment The new assignment string.     * @see #getAssignment     * @see #getAssignment(StringBuffer)     */    public void setAssignment (String assignment)    {        mAssignment = assignment;    }    /**     * Get the value of the attribute.     * The part after the equals sign, or the text if it's just a whitepace     * 'attribute'.     * <em>NOTE:</em> This does not include any quotes that may have enclosed     * the value when it was read. To get the un-stripped value use     * {@link  #getRawValue}.     * @return The value, or <code>null</code> if it's a stand-alone or     * empty attribute, or the text if it's just a whitepace 'attribute'.     * @see #setValue     */    public String getValue ()    {        return (mValue);    }    /**     * Get the value of the attribute.     * @param buffer The buffer to place the value in.     * @see #getValue()     * @see #setValue     */    public void getValue (StringBuffer buffer)    {        if (null != mValue)            buffer.append (mValue);    }    /**     * Set the value of the attribute.     * The part after the equals sign, or the text if it's a whitepace     * 'attribute'.     * <em>WARNING:</em> Setting this property to a value that needs to be     * quoted without also setting the quote character will result in malformed     * HTML.     * @param value The new value.     * @see #getValue     * @see #getValue(StringBuffer)     */    public void setValue (String value)    {        mValue = value;    }    /**     * Get the quote, if any, surrounding the value of the attribute, if any.     * @return Either ' or " if the attribute value was quoted, or zero     * if there are no quotes around it.     * @see #setQuote     */    public char getQuote ()    {        return (mQuote);    }    /**     * Get the quote, if any, surrounding the value of the attribute, if any.     * @param buffer The buffer to place the quote in.     * @see #getQuote()     * @see #setQuote     */    public void getQuote (StringBuffer buffer)    {        if (0 != mQuote)            buffer.append (mQuote);    }    /**     * Set the quote surrounding the value of the attribute.     * <em>WARNING:</em> Setting this property to zero will result in malformed     * HTML if the {@link  #getValue value} needs to be quoted (i.e. contains     * whitespace).     * @param quote The new quote value.     * @see #getQuote     * @see #getQuote(StringBuffer)     */    public void setQuote (char quote)    {        mQuote = quote;    }    /**     * Get the raw value of the attribute.     * The part after the equals sign, or the text if it's just a whitepace     * 'attribute'. This includes the quotes around the value if any.     * @return The value, or <code>null</code> if it's a stand-alone attribute,     * or the text if it's just a whitepace 'attribute'.     * @see #setRawValue     */    public String getRawValue ()    {        char quote;        StringBuffer buffer;        String ret;        if (isValued ())        {            quote = getQuote ();            if (0 != quote)            {                buffer = new StringBuffer (); // todo: what is the value length?                buffer.append (quote);                getValue (buffer);                buffer.append (quote);                ret = buffer.toString ();            }            else                ret = getValue ();        }        else            ret = null;        return (ret);    }    /**     * Get the raw value of the attribute.     * The part after the equals sign, or the text if it's just a whitepace     * 'attribute'. This includes the quotes around the value if any.     * @param buffer The string buffer to append the attribute value to.     * @see #getRawValue()     * @see #setRawValue     */    public void getRawValue (StringBuffer buffer)    {        getQuote (buffer);        getValue (buffer);        getQuote (buffer);    }    /**     * Set the value of the attribute and the quote character.     * If the value is pure whitespace, assign it 'as is' and reset the     * quote character. If not, check for leading and trailing double or     * single quotes, and if found use this as the quote character and     * the inner contents of <code>value</code> as the real value.     * Otherwise, examine the string to determine if quotes are needed     * and an appropriate quote character if so. This may involve changing     * double quotes within the string to character references.     * @param value The new value.     * @see #getRawValue     * @see #getRawValue(StringBuffer)     */    public void setRawValue (String value)    {        char ch;        boolean needed;        boolean singleq;        boolean doubleq;        String ref;        StringBuffer buffer;        char quote;        quote = 0;        if ((null != value) && (0 != value.trim ().length ()))        {            if (value.startsWith ("'") && value.endsWith ("'")                && (2 <= value.length ()))            {                quote = '\'';                value = value.substring (1, value.length () - 1);            }            else if (value.startsWith ("\"") && value.endsWith ("\"")                && (2 <= value.length ()))            {                quote = '"';                value = value.substring (1, value.length () - 1);            }            else            {                // first determine if there's whitespace in the value                // and while we're at it find a suitable quote character                needed = false;                singleq = true;                doubleq = true;                for (int i = 0; i < value.length (); i++)                {                    ch = value.charAt (i);                    if ('\'' == ch)                    {                        singleq  = false;                        needed = true;                    }                    else if ('"' == ch)                    {                        doubleq = false;                        needed = true;                    }                    else if (!('-' == ch) && !('.' == ch) && !('_' == ch)                       && !(':' == ch) && !Character.isLetterOrDigit (ch))                    {                        needed = true;                    }                }                // now apply quoting                if (needed)                {                    if (doubleq)                        quote = '"';                    else if (singleq)                        quote = '\'';                    else                    {                        // uh-oh, we need to convert some quotes into character                        // references, so convert all double quotes into &#34;                        quote = '"';                        ref = "&quot;"; // Translate.encode (quote);                        // JDK 1.4: value = value.replaceAll ("\"", ref);                        buffer = new StringBuffer (                                value.length() * (ref.length () - 1));                        for (int i = 0; i < value.length (); i++)                        {                            ch = value.charAt (i);                            if (quote == ch)                                buffer.append (ref);                            else                                buffer.append (ch);                        }                        value = buffer.toString ();                    }                }            }        }        setValue (value);        setQuote (quote);    }    /**     * Predicate to determine if this attribute is whitespace.     * @return <code>true</code> if this attribute is whitespace,     * <code>false</code> if it is a real attribute.     */    public boolean isWhitespace ()    {        return (null == getName ());    }    /**     * Predicate to determine if this attribute has no equals sign (or value).     * @return <code>true</code> if this attribute is a standalone attribute.     * <code>false</code> if has an equals sign.     */    public boolean isStandAlone ()    {        return ((null != getName ()) && (null == getAssignment ()));    }    /**     * Predicate to determine if this attribute has an equals sign but no value.     * @return <code>true</code> if this attribute is an empty attribute.     * <code>false</code> if has an equals sign and a value.     */    public boolean isEmpty ()    {        return ((null != getAssignment ()) && (null == getValue ()));    }    /**     * Predicate to determine if this attribute has a value.     * @return <code>true</code> if this attribute has a value.     * <code>false</code> if it is empty or standalone.     */    public boolean isValued ()    {        return (null != getValue ());    }    /**     * Get the length of the string value of this attribute.     * @return The number of characters required to express this attribute.     */    public int getLength ()    {        String name;        String assignment;        String value;        char quote;        int ret;        ret = 0;        name = getName ();        if (null != name)            ret += name.length ();        assignment = getAssignment ();        if (null != assignment)            ret += assignment.length ();        value = getValue ();        if (null != value)            ret += value.length ();        quote = getQuote ();        if (0 != quote)            ret += 2;        return (ret);    }    /**     * Get a text representation of this attribute.     * Suitable for insertion into a tag, the output is one of     * the forms:     * <code>     * <pre>     * value     * name     * name=     * name=value     * name='value'     * name="value"     * </pre>     * </code>     * @return A string that can be used within a tag.     */    public String toString ()    {        int length;        StringBuffer ret;        // get the size to avoid extra StringBuffer allocations        length = getLength ();        ret = new StringBuffer (length);        toString (ret);        return (ret.toString ());    }    /**     * Get a text representation of this attribute.     * @param buffer The accumulator for placing the text into.     * @see #toString()     */    public void toString (StringBuffer buffer)    {        getName (buffer);        getAssignment (buffer);        getRawValue (buffer);    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲精品超碰| 日韩av成人高清| 国产欧美日韩精品一区| 精品不卡在线视频| 欧美videossexotv100| 日韩精品中文字幕一区| 日韩精品在线一区二区| 欧美mv日韩mv国产网站| 久久久精品一品道一区| 国产亚洲精品7777| 中文字幕一区二区三区蜜月| 最新国产の精品合集bt伙计| 中文字幕字幕中文在线中不卡视频| 欧美激情一区二区| 亚洲男人电影天堂| 一区av在线播放| 午夜久久久久久| 五月婷婷综合网| 奇米精品一区二区三区在线观看 | 在线看日韩精品电影| 欧美最新大片在线看| 欧美婷婷六月丁香综合色| 欧美性大战久久| 日韩一级在线观看| 久久久久久久久久看片| 国产精品久久久久aaaa樱花| 亚洲欧美日韩中文播放| 五月天一区二区| 久久99国产精品免费网站| 国产成人午夜精品影院观看视频| 99久久亚洲一区二区三区青草| 91久久线看在观草草青青| 538在线一区二区精品国产| 精品久久国产老人久久综合| 欧美激情艳妇裸体舞| 亚洲永久精品大片| 另类调教123区| av电影在线观看一区| 欧美日韩国产首页在线观看| 精品日韩在线观看| 成人欧美一区二区三区1314| 亚洲午夜在线电影| 国精产品一区一区三区mba桃花| 国产成人精品一区二区三区网站观看| 色狠狠色噜噜噜综合网| 欧美成人女星排行榜| 亚洲欧美成人一区二区三区| 日本免费新一区视频| 99国产精品99久久久久久| 欧美精品乱人伦久久久久久| 国产日韩精品一区二区三区在线| 一区二区三区在线视频播放| 久久激情五月婷婷| 色美美综合视频| 久久久综合视频| 亚洲gay无套男同| 成人v精品蜜桃久久一区| 91精品国产综合久久香蕉的特点 | 国产精品综合一区二区三区| 色婷婷av一区二区三区gif | 午夜精品福利一区二区三区av | 精品少妇一区二区三区免费观看 | 欧美经典一区二区| 亚洲成人免费视| 国产成人午夜精品影院观看视频 | 中文字幕亚洲视频| 久久99国产精品尤物| 欧美性猛交xxxx黑人交| 国产女人aaa级久久久级 | 538在线一区二区精品国产| 国产精品视频第一区| 日本成人在线不卡视频| 91浏览器入口在线观看| 久久综合五月天婷婷伊人| 亚洲成人中文在线| 91免费在线视频观看| 久久久www免费人成精品| 免费观看91视频大全| 欧美日韩日本视频| 依依成人综合视频| 成人免费毛片aaaaa**| 久久色在线观看| 蜜臀精品一区二区三区在线观看 | 免费av成人在线| 欧美日韩一区二区三区视频| 1024精品合集| 国产69精品久久99不卡| 国产欧美日韩在线| 精品在线免费视频| 精品蜜桃在线看| 久久精品国产免费| 欧美一级片在线| 日韩精品一卡二卡三卡四卡无卡| 欧美丝袜第三区| 亚洲电影视频在线| 在线91免费看| 午夜精品福利久久久| 欧美日韩三级一区| 五月天激情综合| 91精品国产一区二区人妖| 日韩精品亚洲专区| 制服丝袜av成人在线看| 日韩av中文在线观看| 日韩免费一区二区| 国产在线精品视频| 久久精品一区八戒影视| 成人国产亚洲欧美成人综合网| 欧美韩国日本不卡| 成人高清免费在线播放| 亚洲欧美在线高清| 色菇凉天天综合网| 亚洲国产中文字幕| 欧美一级夜夜爽| 狠狠色狠狠色综合日日91app| 久久亚洲春色中文字幕久久久| 国产一区二区三区免费看 | 老司机精品视频线观看86| 日韩精品一区二区三区三区免费| 黄色日韩三级电影| 亚洲国产高清不卡| aaa亚洲精品| 亚洲在线免费播放| 91精品婷婷国产综合久久| 精久久久久久久久久久| 久久麻豆一区二区| 91丨九色丨黑人外教| 亚洲成a天堂v人片| 日韩欧美一二三区| 国产成人av一区二区三区在线 | 亚洲大片免费看| 日韩欧美卡一卡二| www.日韩大片| 亚洲不卡一区二区三区| 精品国产网站在线观看| 成人免费毛片aaaaa**| 亚洲成人动漫在线免费观看| 日韩精品在线看片z| 成人国产在线观看| 丝袜美腿高跟呻吟高潮一区| 精品国产伦一区二区三区免费| 风间由美中文字幕在线看视频国产欧美| 亚洲视频一区二区在线观看| 欧美高清hd18日本| 国产成人av一区二区三区在线 | 日韩精品在线网站| 成人av在线网站| 天堂成人国产精品一区| 日本一区免费视频| 欧美三级资源在线| 国产91丝袜在线播放0| 亚洲成人av资源| 国产日韩成人精品| 制服丝袜一区二区三区| 国产精品18久久久久久久久久久久| 亚洲精品午夜久久久| 欧美va在线播放| 欧美体内she精高潮| 国产不卡视频一区| 日本三级亚洲精品| 一区二区三区在线视频观看| 久久这里只精品最新地址| 欧美日本一区二区在线观看| 成人永久aaa| 久久国产精品99久久人人澡| 亚洲综合一区二区三区| 久久久99久久精品欧美| 欧美视频精品在线观看| 懂色中文一区二区在线播放| 亚洲最大成人综合| 国产视频一区在线观看| 91精品婷婷国产综合久久性色 | 亚洲欧美国产三级| 久久人人爽爽爽人久久久| 91国在线观看| 波多野结衣视频一区| 日本午夜一区二区| 亚洲成人tv网| 亚洲人成精品久久久久久| 精品美女一区二区| 欧美日韩中文一区| 99re成人在线| 风间由美一区二区三区在线观看| 亚洲色图视频免费播放| 久久综合中文字幕| 日韩免费看网站| 91精品91久久久中77777| 成a人片亚洲日本久久| 亚洲电影一区二区| 一区二区三区国产精华| 国产精品久久久久久久久图文区| 日韩一本二本av| 日韩限制级电影在线观看| 成人av电影在线| 国产69精品久久99不卡| 粉嫩一区二区三区在线看 | 欧美一区二区三区四区五区| www.日本不卡| 色综合久久久久综合体| 国产精品一区免费视频| 蜜臀久久99精品久久久画质超高清|