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

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

?? filternewline.java

?? Jvie論壇的程序
?? JAVA
字號:
/**
 * Copyright (C) 2001 Yasna.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * 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 following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        Yasna.com (http://www.yasna.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Yazd" and "Yasna.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact yazd@yasna.com.
 *
 * 5. Products derived from this software may not be called "Yazd",
 *    nor may "Yazd" appear in their name, without prior written
 *    permission of Yasna.com.
 *
 * 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 YASNA.COM OR
 * ITS 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 Yasna.com. For more information
 * on Yasna.com, please see <http://www.yasna.com>.
 */

/**
 * Copyright (C) 2000 CoolServlets.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * 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 following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        CoolServlets.com (http://www.coolservlets.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Jive" and "CoolServlets.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact webmaster@coolservlets.com.
 *
 * 5. Products derived from this software may not be called "Jive",
 *    nor may "Jive" appear in their name, without prior written
 *    permission of CoolServlets.com.
 *
 * 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 COOLSERVLETS.COM OR
 * ITS 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 CoolServlets.com. For more information
 * on CoolServlets.com, please see <http://www.coolservlets.com>.
 */

package com.Yasna.forum.filter;

import java.util.*;

import com.Yasna.forum.*;
import com.Yasna.util.*;

/**
 * A ForumMessageFilter that converts newline characters into HTML &lt;br&gt; tags.
 * This filter should only be run after any HTML stripping filters.
 */
public class FilterNewline extends ForumMessageFilter {

    private static final String BR_TAG = "<BR>";

    /**
     * Property values of the filter.
     */
    private Properties props;

    /**
     * Property descriptions of the filter.
     */
    private Properties propDescriptions;

    /**
     * Creates a new filter not associated with a message. This is
     * generally only useful for defining a template filter that other
     * fitlers will be cloned from.
     */
    public FilterNewline() {
        super();
        this.props = new Properties();
        this.propDescriptions = new Properties();
    }

    /**
     * Creates a new filter wrapped around the specified message. This
     * constructor is normally called when cloning a filter template.
     *
     * @param message the ForumMessage to wrap the new filter around.
     * @param properties the property values for the filter.
     * @param propertyDescriptions the property descriptions for the filter.
     */
    public FilterNewline(ForumMessage message, Properties props,
            Properties propDescriptions)
    {
        super(message);
        this.props = new Properties(props);
        this.propDescriptions = new Properties(propDescriptions);
    }

    /**
     * Clones a new filter that will have the same properties and that
     * will wrap around the specified message.
     *
     * @param message the ForumMessage to wrap the new filter around.
     */
    public ForumMessageFilter clone(ForumMessage message){
        return new FilterNewline(message, props, propDescriptions);
    }

    /**
     * Returns the name of the filter.
     */
    public String getName() {
        return "Newline Converter";
    }

    /**
     * Returns a description of the filter.
     */
    public String getDescription() {
        return "Replaces newline characters with the &lt;br&gt; HTML tag.";
    }

    /**
     * Returns the author of the filter.
     */
    public String getAuthor() {
        return "CoolServlets.com";
    }

    /**
     * Returns the major version number of the filter.
     */
    public int getMajorVersion() {
        return 1;
    }

    /**
     * Returns the minor version number of the filter.
     */
    public int getMinorVersion() {
        return 0;
    }

    /**
     * Returns the value of a property of the filter.
     *
     * @param name the name of the property.
     * @returns the value of the property.
     */
    public String getFilterProperty(String name) {
        return props.getProperty(name);
    }

    /**
     * Returns the description of a property of the filter.
     *
     * @param name the name of the property.
     * @return the description of the property.
     */
    public String getFilterPropertyDescription(String name) {
        return propDescriptions.getProperty(name);
    }

    /**
     * Returns an Enumeration of all the property names.
     */
    public Enumeration filterPropertyNames() {
        //No properties so return null.
        return null;
    }

    /**
     * Sets a property of the filter. Each filter has a set number of
     * properties that are determined by the filter author.
     *
     * @param name the name of the property to set.
     * @param value the new value for the property.
     *
     * @throws IllegalArgumentException if the property trying to be set doesn't
     *    exist.
     */
    public void setFilterProperty(String name, String value)
            throws IllegalArgumentException
    {
        if (props.getProperty(name) == null) {
            throw new IllegalArgumentException();
        }
        props.put(name, value);
    }

    /**
     * <b>Overloaded</b> to return the body of the message with newline
     * characters converted to &ltbr&gt HTML tags.
     */
    public String getBody() {
        if (message.getBody() == null) {
            return null;
        }
        return convertNewlines(message.getBody());
    }

    /**
    * This method takes a string which may contain newline characters
    * '\n' which it converts to html newline tags.
    *
    * @param input The text to be converted.
    * @return The input string with the newline character '\n' replaced
    * with <br>.
    */
    private String convertNewlines( String input ) {
        String result = StringUtils.replace(input, "\r\n", BR_TAG);
        return StringUtils.replace(result, "\n", BR_TAG);
    }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利区一区二区三区| 国产一区91精品张津瑜| 成人国产精品视频| 欧美一级日韩一级| 高清不卡一区二区| 国产精品欧美久久久久无广告| 中文字幕一区在线观看| 久久99精品久久久久久久久久久久| 成人动漫精品一区二区| 久久综合久久综合九色| 图片区小说区国产精品视频| 99riav久久精品riav| 久久日韩精品一区二区五区| 婷婷开心激情综合| 欧美在线看片a免费观看| 中文在线一区二区| 国产精品一区二区在线观看网站| 欧美一区二区三区公司| 亚洲在线成人精品| 91蝌蚪porny| 国产精品私人影院| 国产美女av一区二区三区| 日韩视频免费直播| 日韩在线卡一卡二| 欧美欧美午夜aⅴ在线观看| 亚洲色图一区二区三区| 国产白丝精品91爽爽久久| 精品国产成人在线影院| 免费看欧美女人艹b| 欧美日韩二区三区| 一级特黄大欧美久久久| 成人高清免费在线播放| 中文字幕免费不卡在线| 国产综合一区二区| 欧美精品一区二区三区蜜臀| 在线影视一区二区三区| 国产精品乱人伦中文| 国产成人av电影免费在线观看| www亚洲一区| 国产一区二区不卡在线| 久久综合九色综合欧美98| 精品在线一区二区三区| 精品国产露脸精彩对白| 精品一区二区精品| 久久亚洲二区三区| 国产高清在线观看免费不卡| 国产欧美日韩激情| 成人h动漫精品一区二区| 国产精品少妇自拍| 91麻豆精东视频| 伊人开心综合网| 欧美日韩精品一二三区| 午夜久久久久久| 日韩免费性生活视频播放| 国模娜娜一区二区三区| 国产欧美日韩一区二区三区在线观看| 国产99一区视频免费 | 久久99精品久久久久婷婷| 欧美va亚洲va香蕉在线| 国产专区欧美精品| 欧美韩日一区二区三区| 91丨九色丨蝌蚪富婆spa| 亚洲精品视频在线看| 精品视频1区2区| 美日韩一区二区三区| 国产亚洲欧美一区在线观看| 99精品在线免费| 视频一区二区三区中文字幕| 精品国产一区二区在线观看| 国产一区二区三区蝌蚪| 中文字幕在线一区二区三区| 欧洲视频一区二区| 麻豆一区二区三| 国产精品国产三级国产有无不卡| 一本大道av一区二区在线播放| 午夜天堂影视香蕉久久| 精品欧美乱码久久久久久1区2区| 国产成人欧美日韩在线电影| 亚洲男人都懂的| 91精品国产色综合久久ai换脸 | 一区二区成人在线观看| 91精品国产综合久久福利软件| 国内一区二区在线| 一区在线观看免费| 欧美丰满嫩嫩电影| 国产高清视频一区| 亚洲精选视频在线| 日韩欧美国产电影| 菠萝蜜视频在线观看一区| 亚洲国产日韩在线一区模特| 精品国产污污免费网站入口| 91视频在线看| 亚洲丝袜精品丝袜在线| 日韩福利视频网| 欧美伦理影视网| 国产精品理论片在线观看| 久久夜色精品国产噜噜av| 国产精品不卡一区二区三区| 亚洲视频狠狠干| 曰韩精品一区二区| 亚洲国产精品尤物yw在线观看| 亚洲欧美另类久久久精品2019| 亚洲激情综合网| 亚洲h动漫在线| 国产一区二区视频在线| 在线观看一区不卡| 精品国产99国产精品| 久久黄色级2电影| 亚洲男帅同性gay1069| 精品日韩一区二区三区免费视频| 成人在线视频一区| 日本不卡在线视频| 亚洲黄色小说网站| 欧美国产精品v| 日韩精品一区在线观看| 欧美在线观看视频一区二区三区| 粉嫩av亚洲一区二区图片| 五月综合激情日本mⅴ| 中文字幕综合网| 久久久午夜精品理论片中文字幕| 欧美视频精品在线观看| 不卡视频一二三| 国产一区二区福利视频| 丝袜诱惑制服诱惑色一区在线观看 | 亚洲欧美偷拍三级| 久久这里只有精品首页| 在线播放日韩导航| 91视频精品在这里| 丁香亚洲综合激情啪啪综合| 免费在线看一区| 亚洲成人一区二区| 亚洲欧美日韩国产手机在线 | 欧美色爱综合网| jlzzjlzz亚洲日本少妇| 国产精品一区二区三区乱码| 免费在线看一区| 五月综合激情婷婷六月色窝| 亚洲在线免费播放| 怡红院av一区二区三区| 国产精品国产自产拍高清av王其 | 欧美精品99久久久**| 91视频com| 97se亚洲国产综合在线| 成人福利视频网站| 成人天堂资源www在线| 国产成人av一区二区三区在线 | 国产xxx精品视频大全| 韩国精品主播一区二区在线观看| 日韩高清在线一区| 亚洲成人激情综合网| 一区二区三区蜜桃网| 亚洲品质自拍视频| 亚洲视频一区二区在线| 国产精品国产自产拍高清av王其| 国产精品污www在线观看| 国产性色一区二区| 久久综合色8888| 国产欧美va欧美不卡在线| 国产精选一区二区三区| 久久亚洲精精品中文字幕早川悠里| 国产超碰在线一区| 国产精品亚洲专一区二区三区| 2021国产精品久久精品| 国产乱淫av一区二区三区 | 麻豆精品视频在线观看免费 | 亚洲色图欧美激情| 99久久久免费精品国产一区二区| 中文字幕不卡的av| 欧美精品v国产精品v日韩精品 | 欧美日韩高清在线| 欧美在线播放高清精品| 欧美手机在线视频| 欧美男男青年gay1069videost | 亚洲午夜影视影院在线观看| 精品福利一区二区三区| 精品国产伦一区二区三区免费| 久久伊人中文字幕| 成人性生交大合| 亚洲成年人网站在线观看| 91福利社在线观看| 欧美视频一区在线| 91精品在线免费观看| 精品国产一区二区精华| 日本一区二区三区国色天香 | 成人av网站在线观看免费| 91九色最新地址| 在线观看不卡一区| 欧美另类变人与禽xxxxx| 日韩一级成人av| 国产女主播一区| 一区二区在线观看免费| 日产欧产美韩系列久久99| 国产精品一区2区| 国产精品热久久久久夜色精品三区 | 欧美日韩激情一区| 日韩欧美一级片| 国产精品久久久久久一区二区三区| 玉米视频成人免费看| 蓝色福利精品导航| www.日韩大片|