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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? filterhtml.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 java.io.*;

import com.Yasna.forum.*;
import com.Yasna.codeviewer.*;

/**
 * A ForumMessageFilter that escapes all HTML tags to prevent a user
 * from embedding arbitrary HTML in a message.
 */
public class FilterHtml extends ForumMessageFilter implements Serializable {

    /**
     * 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 FilterHtml() {
        super();
        props = new Properties();
        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 FilterHtml(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 FilterHtml(message,props,propDescriptions);
    }

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

    /**
     * Returns a description of the filter.
     */
    public String getDescription() {
        return "Escapes HTML tags by converting &lt; and &gt; characters " +
                "into HTML esacpe sequences.";
    }

    /**
     * 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 a description 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 subject of the message with HTML tags
     * escaped.
     */
    public String getSubject() {
        return escapeHTMLTags(message.getSubject());
    }

    /**
     * <b>Overloaded</b> to return the body of the message with HTML tags
     * escaped.
     */
    public String getBody() {
        return escapeHTMLTags(message.getBody());
    }

    /**
     * This method takes a string which may contain HTML tags (ie, <b>, <table>,
     * etc) and converts the '<' and '>' characters to their HTML escape
     * sequences.
     *
     * @param input The text to be converted.
     * @return The input string with the characters '<' and '>' replaced with
     *  &lt; and &gt; respectively.
     */
    private String escapeHTMLTags( String input ) {
        //Check if the string is null or zero length -- if so, return
        //what was sent in.
        if( input == null || input.length() == 0 ) {
            return input;
        }
        //Use a StringBuffer in lieu of String concatenation -- it is
        //much more efficient this way.
        StringBuffer buf = new StringBuffer(input.length()+6);
        char ch = ' ';
        for( int i=0; i<input.length(); i++ ) {
            ch = input.charAt(i);
            if( ch == '<' ) {
                buf.append( "&lt;" );
            }
            else if( ch == '>' ) {
                buf.append( "&gt;" );
            }
            else {
                buf.append( ch );
            }
        }
        return buf.toString();
    }
} 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆免费观看| 国产一区在线观看麻豆| 91蝌蚪porny成人天涯| 中文字幕在线一区二区三区| 成人性色生活片免费看爆迷你毛片| 26uuu亚洲婷婷狠狠天堂| 国产一区二区导航在线播放| 在线免费观看成人短视频| 午夜精品福利一区二区蜜股av| 91.xcao| 久久精品国产99国产精品| 精品成人佐山爱一区二区| 粉嫩在线一区二区三区视频| 国产精品理伦片| 在线观看国产日韩| 久久激情五月激情| 国产精品网站在线| 欧美性videosxxxxx| 麻豆成人免费电影| 国产精品丝袜一区| 欧美久久久久久久久| 狠狠色2019综合网| 亚洲三级在线播放| 日韩一区二区在线免费观看| 成人av电影免费在线播放| 亚洲第一福利视频在线| 久久久精品国产99久久精品芒果| 91免费在线视频观看| 日本不卡一区二区| 国产精品日韩成人| 欧美一区二区高清| 成人免费的视频| 亚洲一区在线电影| 久久精品视频一区| 欧美在线影院一区二区| 国产专区欧美精品| 亚洲综合免费观看高清完整版在线 | 欧美日韩不卡一区| 国内久久婷婷综合| 亚洲va天堂va国产va久| 欧美激情一区二区三区四区| 欧美老肥妇做.爰bbww| 粉嫩一区二区三区在线看| 天堂久久一区二区三区| 中文字幕一区二区三区不卡在线| 欧美一三区三区四区免费在线看| www.色综合.com| 精品一区中文字幕| 日韩精品一级二级 | 99视频有精品| 国产一区二区三区免费在线观看| 一区二区三区美女视频| 国产日韩成人精品| 欧美不卡视频一区| 精品视频1区2区| 91影视在线播放| 国产精品一区二区三区99| 日日欢夜夜爽一区| 亚洲夂夂婷婷色拍ww47| 国产精品国产精品国产专区不片| 久久尤物电影视频在线观看| 91精品国产91综合久久蜜臀| 91精彩视频在线| 99免费精品在线观看| 国产激情视频一区二区三区欧美| 蜜臀久久99精品久久久画质超高清| 一二三区精品视频| 日韩伦理av电影| 中文字幕中文字幕中文字幕亚洲无线| 久久尤物电影视频在线观看| 91麻豆精品国产无毒不卡在线观看| 欧洲国产伦久久久久久久| 91性感美女视频| 一本一本久久a久久精品综合麻豆| 国产成人av电影在线| 狠狠色2019综合网| 国产精品一区二区久久不卡| 激情图片小说一区| 久久精品99国产精品| 精品一区二区三区免费| 久久97超碰国产精品超碰| 免费三级欧美电影| 久久成人免费网| 精东粉嫩av免费一区二区三区| 久久激五月天综合精品| 国产最新精品精品你懂的| 国产剧情在线观看一区二区| 国产在线精品免费| 国产精品456| 99久久99久久精品免费观看| 99r精品视频| 欧美亚洲一区二区在线观看| 欧美久久免费观看| 欧美一区二区在线免费播放| 日韩欧美美女一区二区三区| 久久久久久久性| 国产精品色婷婷| 亚洲欧美日韩国产手机在线| 一区二区三区精品在线观看| 伊人色综合久久天天| 日韩国产成人精品| 国产精品视频一二| 欧美日韩国产在线观看| 欧美zozozo| 懂色av中文字幕一区二区三区| 国产精品亚洲成人| 日日噜噜夜夜狠狠视频欧美人| 国产一区二区三区在线观看精品 | 亚洲一卡二卡三卡四卡| 中文字幕亚洲一区二区av在线| 5858s免费视频成人| 欧美日韩你懂的| 亚洲欧洲精品一区二区精品久久久| 精品sm在线观看| 午夜精品aaa| 99热在这里有精品免费| 久久综合九色综合97婷婷女人| 亚洲第一精品在线| 色播五月激情综合网| 亚洲人亚洲人成电影网站色| 国产精品亚洲专一区二区三区 | 国产91精品露脸国语对白| 91极品美女在线| 久久精品视频一区二区| 男女激情视频一区| 91精品在线免费观看| 樱桃视频在线观看一区| 色婷婷一区二区| 亚洲自拍欧美精品| 日本精品视频一区二区| 亚洲欧洲av一区二区三区久久| 夫妻av一区二区| 欧美精品一区二区久久久| 亚洲成人中文在线| 91精品福利视频| 亚洲精品国产第一综合99久久| 色婷婷久久久久swag精品| 一区二区三区日韩精品视频| 99久久综合99久久综合网站| 久久久精品国产99久久精品芒果| 国产成人在线观看免费网站| 欧美国产亚洲另类动漫| 91女神在线视频| 日韩国产欧美视频| 精品国产乱码久久久久久1区2区| 国产91露脸合集magnet| 亚洲精品国产一区二区三区四区在线 | 国产亚洲综合色| 91首页免费视频| 裸体一区二区三区| 国产精品毛片久久久久久| 欧美一区二区三区免费在线看 | 蜜臀av一级做a爰片久久| 久久精品视频在线免费观看| 欧美丝袜丝交足nylons图片| 成人小视频在线观看| 蜜桃av一区二区| 视频一区视频二区中文| 国产精品久久久久久福利一牛影视 | 一本大道av一区二区在线播放| 国产乱码精品一品二品| 综合激情网...| 欧美日韩精品欧美日韩精品一综合| 夜夜精品浪潮av一区二区三区| 最新国产精品久久精品| 精品国产免费一区二区三区四区| 欧美日韩国产精品自在自线| 在线视频中文字幕一区二区| 成人综合婷婷国产精品久久免费| 日韩国产一区二| 激情欧美一区二区| 久久99精品久久久久| 韩国成人精品a∨在线观看| 精品制服美女久久| 亚洲r级在线视频| 日韩一区日韩二区| 亚洲麻豆国产自偷在线| 亚洲天堂成人网| 尤物在线观看一区| 亚洲成人午夜电影| 麻豆精品视频在线观看免费| 久久99精品国产| 白白色亚洲国产精品| 欧美体内she精高潮| 久久亚洲综合色| 中文字幕精品三区| 一区二区三区欧美亚洲| 青青草国产成人99久久| 国产福利91精品| 色94色欧美sute亚洲线路一久| 欧美一a一片一级一片| 精品播放一区二区| 亚洲精品国产视频| 久久久综合视频| 日韩一区二区三| 国产精品第13页| 久久av老司机精品网站导航| 91麻豆产精品久久久久久| 日韩午夜小视频| 亚洲一区自拍偷拍|