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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? text.java

?? The JDOM build system is based on Jakarta Ant, which is a Java building tool originally developed fo
?? JAVA
字號(hào):
/*--

 $Id: Text.java,v 1.24 2004/02/27 11:32:57 jhunter Exp $

 Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:

 1. Redistributions of source code must retain the above copyright
    notice, this list of conditions, and the following disclaimer.

 2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions, and the disclaimer that follows
    these conditions in the documentation and/or other materials
    provided with the distribution.

 3. The name "JDOM" must not be used to endorse or promote products
    derived from this software without prior written permission.  For
    written permission, please contact <request_AT_jdom_DOT_org>.

 4. Products derived from this software may not be called "JDOM", nor
    may "JDOM" appear in their name, without prior written permission
    from the JDOM Project Management <request_AT_jdom_DOT_org>.

 In addition, we request (but do not require) that you include in the
 end-user documentation provided with the redistribution and/or in the
 software itself an acknowledgement equivalent to the following:
     "This product includes software developed by the
      JDOM Project (http://www.jdom.org/)."
 Alternatively, the acknowledgment may be graphical using the logos
 available at http://www.jdom.org/images/logos.

 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED.  IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 SUCH DAMAGE.

 This software consists of voluntary contributions made by many
 individuals on behalf of the JDOM Project and was originally
 created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
 Brett McLaughlin <brett_AT_jdom_DOT_org>.  For more information
 on the JDOM Project, please see <http://www.jdom.org/>.

 */

package org.jdom;

/**
 * Character-based XML content. Provides a modular, parentable method of
 * representing text. Text makes no guarantees about the underlying textual
 * representation of character data, but does expose that data as a Java String.
 *
 * @version $Revision: 1.24 $, $Date: 2004/02/27 11:32:57 $
 * @author  Brett McLaughlin
 * @author  Jason Hunter
 * @author  Bradley S. Huffman
 */
public class Text extends Content {

    private static final String CVS_ID =
      "@(#) $RCSfile: Text.java,v $ $Revision: 1.24 $ $Date: 2004/02/27 11:32:57 $ $Name: jdom_1_0 $";

    static final String EMPTY_STRING = "";

    /** The actual character content */
    // XXX See http://www.servlets.com/archive/servlet/ReadMsg?msgId=8612
    // from elharo for a description of why Java characters may not suffice
    // long term
    protected String value;

    /**
     * This is the protected, no-args constructor standard in all JDOM
     * classes. It allows subclassers to get a raw instance with no
     * initialization.
     */
    protected Text() { }

    /**
     * This constructor creates a new <code>Text</code> node, with the
     * supplied string value as it's character content.
     *
     * @param str the node's character content.
     * @throws IllegalDataException if <code>str</code> contains an
     *         illegal character such as a vertical tab (as determined
     *         by {@link org.jdom.Verifier#checkCharacterData})
     */
    public Text(String str) {
        setText(str);
    }

    /**
     * This returns the value of this <code>Text</code> node as a Java
     * <code>String</code>.
     *
     * @return <code>String</code> - character content of this node.
     */
    public String getText() {
        return value;
    }

    /**
     * This returns the textual content with all surrounding whitespace
     * removed.  If only whitespace exists, the empty string is returned.
     *
     * @return trimmed text content or empty string
     */
    public String getTextTrim() {
        return getText().trim();
    }

    /**
     * This returns the textual content with all surrounding whitespace
     * removed and internal whitespace normalized to a single space.  If
     * only whitespace exists, the empty string is returned.
     *
     * @return normalized text content or empty string
     */
    public String getTextNormalize() {
        return normalizeString(getText());
    }

    /**
     * This returns a new string with all surrounding whitespace
     * removed and internal whitespace normalized to a single space.  If
     * only whitespace exists, the empty string is returned.
     * <p>
     * Per XML 1.0 Production 3 whitespace includes: #x20, #x9, #xD, #xA
     * </p>
     *
     * @param str string to be normalized.
     * @return normalized string or empty string
     */
    public static String normalizeString(String str) {
        if (str == null)
            return EMPTY_STRING;

        char[] c = str.toCharArray();
        char[] n = new char[c.length];
        boolean white = true;
        int pos = 0;
        for (int i = 0; i < c.length; i++) {
            if (" \t\n\r".indexOf(c[i]) != -1) {
                if (!white) {
                    n[pos++] = ' ';
                    white = true;
                }
            }
            else {
                n[pos++] = c[i];
                white = false;
            }
        }
        if (white && pos > 0) {
            pos--;
        }
        return new String(n, 0, pos);
    }

    /**
     * This will set the value of this <code>Text</code> node.
     *
     * @param str value for node's content.
     * @return the object on which the method was invoked
     * @throws IllegalDataException if <code>str</code> contains an
     *         illegal character such as a vertical tab (as determined
     *         by {@link org.jdom.Verifier#checkCharacterData})
     */
    public Text setText(String str) {
        String reason;

        if (str == null) {
            value = EMPTY_STRING;
            return this;
        }

        if ((reason = Verifier.checkCharacterData(str)) != null) {
            throw new IllegalDataException(str, "character content", reason);
        }
        value = str;
        return this;
    }

    /**
     * This will append character content to whatever content already
     * exists within this <code>Text</code> node.
     *
     * @param str character content to append.
     * @throws IllegalDataException if <code>str</code> contains an
     *         illegal character such as a vertical tab (as determined
     *         by {@link org.jdom.Verifier#checkCharacterData})
     */
    public void append(String str) {
        String reason;

        if (str == null) {
            return;
        }
        if ((reason = Verifier.checkCharacterData(str)) != null) {
            throw new IllegalDataException(str, "character content", reason);
        }

        if (str == EMPTY_STRING)
             value = str;
        else value += str;
    }

    /**
     * This will append the content of another <code>Text</code> node
     * to this node.
     *
     * @param text Text node to append.
     */
    public void append(Text text) {
        if (text == null) {
            return;
        }
        value += text.getText();
    }

    /**
     * Returns the XPath 1.0 string value of this element, which is the
     * text itself.
     *
     * @return the text
     */
    public String getValue() {
        return value;
    }

    /**
     * This returns a <code>String</code> representation of the
     * <code>Text</code> node, suitable for debugging. If the XML
     * representation of the <code>Text</code> node is desired,
     * either <code>{@link #getText}</code> or
     * {@link org.jdom.output.XMLOutputter#outputString(Text)}</code>
     * should be used.
     *
     * @return <code>String</code> - information about this node.
     */
    public String toString() {
        return new StringBuffer(64)
            .append("[Text: ")
            .append(getText())
            .append("]")
            .toString();
    }

    /**
     * This will return a clone of this <code>Text</code> node, with the
     * same character content, but no parent.
     *
     * @return <code>Text</code> - cloned node.
     */
    public Object clone() {
        Text text = (Text)super.clone();
        text.value = value;
        return text;
    }

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91原创在线视频| 日韩经典中文字幕一区| 欧美久久免费观看| 欧美影院午夜播放| 欧美一区二区三区不卡| 国产亚洲1区2区3区| 中文字幕日韩av资源站| 亚洲成人777| 黄页网站大全一区二区| 91视视频在线观看入口直接观看www| 欧美伊人久久大香线蕉综合69 | 国产日韩综合av| 亚洲男女毛片无遮挡| 免费在线成人网| 成人av电影在线观看| 777色狠狠一区二区三区| 久久久国际精品| 亚洲午夜日本在线观看| 国产福利视频一区二区三区| 欧美午夜精品一区二区三区| 欧美精品一区二区在线播放| 有坂深雪av一区二区精品| 免费精品视频在线| 91蜜桃视频在线| www日韩大片| 亚洲国产精品天堂| 成人激情av网| 欧美va天堂va视频va在线| 一区二区激情小说| 懂色av中文字幕一区二区三区| 欧美日韩精品免费观看视频| 国产精品久久久久久亚洲毛片 | 久久午夜色播影院免费高清| 亚洲一区在线观看免费 | 综合久久久久综合| 久久er99热精品一区二区| 欧美在线观看18| 国产精品萝li| 国产高清视频一区| 日韩一区二区免费视频| 一区二区三区四区在线播放| 成人黄色一级视频| 久久女同互慰一区二区三区| 天堂av在线一区| 在线视频中文字幕一区二区| 国产精品入口麻豆九色| 国产一区999| 精品欧美一区二区三区精品久久| 亚洲成人av免费| 91传媒视频在线播放| 最新不卡av在线| 成人在线一区二区三区| 久久久久久久久久看片| 九九视频精品免费| 从欧美一区二区三区| 在线综合视频播放| 亚洲一卡二卡三卡四卡无卡久久| 91丝袜美女网| 亚洲欧洲综合另类在线| av资源站一区| 国产精品理论片| 国产成人av一区二区| 久久久高清一区二区三区| 久久精品99国产精品| 欧美一区二区三区四区视频| 日韩精品午夜视频| 欧美日韩国产综合一区二区| 丝袜美腿亚洲一区二区图片| 欧美日韩激情一区二区三区| 亚洲第一会所有码转帖| 在线免费观看不卡av| 一片黄亚洲嫩模| 色就色 综合激情| 亚洲一级二级在线| 欧美男生操女生| 日本一道高清亚洲日美韩| 欧美精品久久久久久久久老牛影院| 亚洲一区二区欧美日韩| 欧美吞精做爰啪啪高潮| 天天色天天爱天天射综合| 欧美一卡二卡在线观看| 久久精品国产第一区二区三区| 欧美mv日韩mv国产网站| 国产成人综合网| 18成人在线观看| 欧美性淫爽ww久久久久无| 亚洲一区二区三区在线看| 91精品婷婷国产综合久久性色| 奇米影视一区二区三区小说| 欧美mv和日韩mv国产网站| 国产精品亚洲第一区在线暖暖韩国| 中文字幕第一区第二区| 色综合久久精品| 五月天精品一区二区三区| 日韩欧美国产一二三区| 国产成+人+日韩+欧美+亚洲| ㊣最新国产の精品bt伙计久久| 在线看一区二区| 人人爽香蕉精品| 久久久久久黄色| 91污在线观看| 日日夜夜一区二区| 久久久无码精品亚洲日韩按摩| av亚洲产国偷v产偷v自拍| 夜夜嗨av一区二区三区| 欧美精品三级在线观看| 国产美女一区二区三区| 亚洲精品ww久久久久久p站| 欧美高清激情brazzers| 韩日av一区二区| 亚洲精品高清在线| 日韩精品一区二区三区在线播放| 懂色av一区二区三区蜜臀| 亚洲精品你懂的| 日韩视频一区二区三区在线播放| 国产精品中文字幕欧美| 一区二区在线观看视频| 日韩免费视频一区二区| 99精品欧美一区二区蜜桃免费| 偷拍一区二区三区| 色婷婷av一区| 亚洲黄色性网站| 欧美mv和日韩mv国产网站| av中文字幕不卡| 蜜臀久久99精品久久久久久9| 中国av一区二区三区| 欧美日韩mp4| 高清在线成人网| 天堂av在线一区| 国产精品国产三级国产aⅴ无密码| 欧美精品一级二级三级| 不卡的av网站| 老司机午夜精品| 亚洲一区二区3| 欧美国产日本视频| 91精品国产欧美一区二区成人 | 成人欧美一区二区三区黑人麻豆 | 久久成人av少妇免费| 亚洲天堂a在线| 久久久久久99久久久精品网站| 欧美日韩美少妇 | 亚洲综合激情小说| www日韩大片| 777欧美精品| 色噜噜狠狠色综合欧洲selulu| 国产精品综合网| 麻豆视频观看网址久久| 亚洲午夜久久久久久久久电影网 | 成人av网站大全| 麻豆一区二区在线| 亚洲高清免费视频| 中文字幕va一区二区三区| 精品欧美一区二区三区精品久久| 91色视频在线| 亚洲风情在线资源站| 亚洲欧美日韩电影| 久久久久久久久久美女| 日韩一区二区三区在线| 欧美精品丝袜久久久中文字幕| 91麻豆高清视频| 成人在线一区二区三区| 国产精品一区一区| 精品一二线国产| 日本免费新一区视频| 肉色丝袜一区二区| 婷婷综合五月天| 亚洲国产精品精华液网站| 一区二区三区美女视频| 亚洲欧美日韩在线播放| 亚洲国产精品av| 欧美高清在线一区二区| 精品国产乱码久久久久久浪潮| 欧美一区二区精美| 日韩午夜av电影| 欧美一级黄色录像| 欧美一区二区免费| 日韩区在线观看| 日韩欧美一区在线观看| 日韩精品一区二区三区蜜臀 | 麻豆国产精品一区二区三区 | 久久综合成人精品亚洲另类欧美| 日韩色在线观看| 日韩精品一区在线| 亚洲精品一区二区三区香蕉| 日韩欧美视频在线| 欧美成人激情免费网| 欧美成人三级在线| 欧美成人官网二区| 精品国产成人系列| 亚洲精品一线二线三线| 久久综合九色综合97_久久久| 久久一二三国产| 欧美激情在线观看视频免费| 欧美韩日一区二区三区| 一色桃子久久精品亚洲| 一区二区三区四区激情| 亚洲国产精品欧美一二99| 日韩av在线发布| 国产精品一区二区三区乱码| 成人激情午夜影院|