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

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

?? filterhackerspeak.java

?? 這是學習Java必須讀懂兩套源代碼
?? 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 Translates normal text into 'Hacker Speak'.
 */
public class FilterHackerSpeak 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 FilterHackerSpeak() {
        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 FilterHackerSpeak(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 FilterHackerSpeak(message,props,propDescriptions);
    }

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

    /**
     * Returns a description of the filter.
     */
    public String getDescription() {
        return "Translates normal text into 'Hacker Speak'.";
    }

    /**
     * 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 makeHacker(message.getSubject());
    }

    /**
     * <b>Overloaded</b> to return the body of the message with HTML tags
     * escaped.
     */
    public String getBody() {
        return makeHacker(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 makeHacker( 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());
        char ch = ' ';
        for( int i=0; i<input.length(); i++ ) {
            ch = input.charAt(i);
            if (Math.random() < .20) {
                if( ch == 'a' ) {
                    buf.append( "@" );
                }
                else if( ch == 'e' ) {
                    buf.append( "3" );
                }
                else if( ch == 'g' ) {
                    buf.append( "6" );
                }
                else if( ch == 'i' ) {
                    buf.append( "1" );
                }
                else if( ch == 'o' ) {
                    buf.append( "0" );
                }
                else if( ch == 't' ) {
                    buf.append( "7" );
                }
                else if( ch == 's' ) {
                    buf.append( "$" );
                }
                else {
                    buf.append( ch );
                }
            }
            else {
                buf.append( ch );
            }
        }
        return buf.toString();
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩不卡免费视频| 一区二区三区四区在线免费观看| 欧美影院一区二区| 欧美乱熟臀69xxxxxx| 欧美日韩国产一级| 日韩视频一区二区三区在线播放| 欧美高清你懂得| 日本一区二区三区国色天香| 国产精品精品国产色婷婷| 亚洲免费在线观看| 喷白浆一区二区| 欧美一级欧美三级在线观看| 欧美一区二区视频在线观看2020| 在线视频中文字幕一区二区| 99久久99久久精品免费观看 | 亚洲第一主播视频| 亚洲婷婷在线视频| 日本三级韩国三级欧美三级| 黄页视频在线91| 在线免费观看视频一区| 精品美女在线播放| 夜夜爽夜夜爽精品视频| 激情欧美一区二区| 制服丝袜av成人在线看| 中文一区二区在线观看| 免费久久99精品国产| 一本大道av伊人久久综合| 国产日本一区二区| 五月综合激情婷婷六月色窝| 国产精品一级黄| 欧美一区二区在线免费播放| 亚洲一区二区三区四区在线观看| 国产一区在线观看麻豆| 欧美mv日韩mv国产网站app| 亚洲欧美国产三级| 成人v精品蜜桃久久一区| 国产午夜三级一区二区三| 奇米777欧美一区二区| 欧美一区二区久久久| 日本亚洲电影天堂| 精品精品欲导航| 国产精品综合久久| 国产精品久久久久影院| 成人网男人的天堂| 成人欧美一区二区三区小说 | 国产视频一区不卡| 国产a区久久久| 亚洲综合区在线| 日韩午夜在线观看| 国产一区二区中文字幕| 国产精品久久久久久久久果冻传媒 | 国产乱码精品一区二区三区av| 日韩精品在线看片z| 国产不卡免费视频| 亚洲成人av福利| 国产亚洲1区2区3区| 色综合久久久久综合体| 另类小说欧美激情| 亚洲色图在线播放| 日韩亚洲欧美在线观看| 成人一二三区视频| 午夜精品123| 国产精品乱子久久久久| 在线不卡中文字幕播放| 播五月开心婷婷综合| 爽好久久久欧美精品| 中文字幕在线观看一区二区| 6080yy午夜一二三区久久| 国产一区二区三区四区在线观看| 亚洲午夜久久久久久久久电影网 | 91蝌蚪国产九色| 国产在线国偷精品产拍免费yy| 一区二区免费看| 国产精品卡一卡二| 国产精品网站一区| 久久久久国产免费免费| 欧美电视剧在线观看完整版| 欧美性极品少妇| 在线国产亚洲欧美| 欧美综合久久久| 91麻豆精品久久久久蜜臀| 成人动漫一区二区三区| 中文字幕第一区| 国产精品午夜春色av| 国产午夜精品久久| 国产精品三级久久久久三级| 久久众筹精品私拍模特| 久久久精品国产免大香伊| 久久亚洲影视婷婷| 久久在线观看免费| 国产日产欧美一区| 亚洲精品写真福利| 精品影院一区二区久久久| 午夜av一区二区| 九九国产精品视频| 成人国产精品视频| 欧美男同性恋视频网站| 日韩精品在线一区二区| 不卡视频在线观看| 亚洲精品成a人| 午夜婷婷国产麻豆精品| 国产传媒久久文化传媒| 成人福利视频在线看| 欧美日韩五月天| 国产精品久久久久久久久免费桃花 | 欧美一区二区三区男人的天堂| 国产精品福利av| 99视频精品全部免费在线| 久久日韩粉嫩一区二区三区 | 国产精品乱码人人做人人爱| 亚洲综合色网站| 色综合色狠狠综合色| 一区二区中文视频| 色老综合老女人久久久| 亚洲精品乱码久久久久久| 在线观看亚洲专区| 水蜜桃久久夜色精品一区的特点| 在线播放日韩导航| 极品美女销魂一区二区三区免费 | 99久久婷婷国产精品综合| 亚洲欧洲成人av每日更新| 欧美在线|欧美| 乱一区二区av| 91精品在线免费| 中文av字幕一区| 亚洲亚洲人成综合网络| 99久久婷婷国产综合精品| 一区二区三区欧美在线观看| 欧美女孩性生活视频| 国产福利不卡视频| 丝袜诱惑亚洲看片| ...xxx性欧美| 欧美成人在线直播| 欧美在线制服丝袜| 顶级嫩模精品视频在线看| 欧美激情中文不卡| 日韩欧美激情四射| 欧美日韩一区二区三区四区五区| 精品一二线国产| 亚洲第一搞黄网站| 亚洲欧洲在线观看av| 欧美在线一二三| 国产又黄又大久久| 免费不卡在线视频| 日本麻豆一区二区三区视频| 中文字幕亚洲一区二区av在线| 欧美电影免费观看完整版| 69堂成人精品免费视频| 日本乱码高清不卡字幕| 国产精品资源网| 国产电影一区在线| 国产91丝袜在线播放九色| 国产综合色精品一区二区三区| 男女激情视频一区| 麻豆国产欧美日韩综合精品二区| 一二三四区精品视频| 综合久久一区二区三区| 国产精品卡一卡二| 国产精品无圣光一区二区| 久久精品人人做人人爽人人| 日韩一区二区三| 精品国产91九色蝌蚪| 久久人人爽爽爽人久久久| 欧美高清视频不卡网| 欧美日韩国产电影| 欧美午夜电影在线播放| 92精品国产成人观看免费| 成人国产精品视频| 色综合久久天天| 欧美天天综合网| 日韩午夜av一区| 久久久久97国产精华液好用吗| 中文字幕高清不卡| 国产精品福利一区二区三区| 亚洲免费观看高清在线观看| 亚洲免费三区一区二区| 综合网在线视频| 香蕉影视欧美成人| 激情综合网av| 99re6这里只有精品视频在线观看| 91亚洲精华国产精华精华液| 色综合天天综合网国产成人综合天| 欧美日高清视频| 一卡二卡欧美日韩| 韩国一区二区在线观看| 不卡在线观看av| 久久婷婷国产综合精品青草| 亚洲gay无套男同| 成人自拍视频在线观看| 久久综合资源网| 奇米一区二区三区| 欧美视频一区二区三区四区| 国产精品久久久久久久岛一牛影视| 天天综合天天综合色| 欧美在线一区二区| 亚洲女爱视频在线| 成人av在线一区二区三区| 精品国产一区二区三区忘忧草 | 91同城在线观看| 日韩欧美中文字幕精品|