JSP设计的BBS论坛系统


使用MyEclipse+mysql设计开发的bbs论坛系统,有完整源代码。数据库连接池,structs结构
资源截图
代码片段和文件信息
package com.bbs.codeviewer;

import java.util.*;

/**
 * A class that syntax highlights Java code into html.
 * 


 * A CodeViewer object is created and then keeps state as
 * lines are passed in. Each line passed in as java text is returned as syntax
 * highlighted html text.
 * 


 * Users of the class can set how the java code will be highlighted with
 * setter methods.
 * 


 * Only valid java lines should be passed in since the object maintains
 * state and may not handle illegal code gracefully.
 * 


 * The actual system is implemented as a series of filters that deal with
 * specific portions of the java code. The filters are as follows:
 * 


 * 


 *  htmlFilter
 *     |__
 *        multiLineCommentFilter
 *           |___
 *                inlineCommentFilter
 *                   |___
 *                        stringFilter
 *                           |__
 *                               keywordFilter
 * 

 *
 */
public class CodeViewer {
    private static HashMap reservedWords = new HashMap(150); // >= Java2 only (also not thread-safe)
    //private static Hashtable reservedWords = new Hashtable(150); // < Java2 (thread-safe)
    private boolean inMultiLineComment = false;
    private String backgroundColor = “#ffffff“;
    private String commentStart = ““;
    private String commentEnd = “
“;
    private String stringStart = ““;
    private String stringEnd = ““;
    private String reservedWordStart = ““;
    private String reservedWordEnd = “
“;

    /**
     * Load all keywords at class loading time.
     */
    static {
        loadKeywords();
    }

    /**
     * Gets the html for the start of a comment block.
     */
    public String getCommentStart() {
        return commentStart;
    }

    /**
     * Sets the html for the start of a comment block.
     */
    public void setCommentStart(String commentStart) {
        this.commentStart = commentStart;
    }

    /**
     * Gets the html for the end of a comment block.
     */
    public String getCommentEnd() {
        return commentEnd;
    }

    /**
     * Sets the html for the end of a comment block.
     */
    public void setCommentEnd(String commentEnd) {
        this.commentEnd = commentEnd;
    }

    /**
     * Gets the html for the start of a String.
     */
    public String getStringStart() {
        return stringStart;
    }

    /**
     * Sets the html for the start of a String.
     */
    public void setStringStart(String stringStart) {
        this.stringStart = stringStart;
    }

    /**
     * Gets the html for the end of a String.
     */
    public String getStringEnd() {
        return stringEnd;
    }

    /**
     * Sets the html for the end of a String.
     */
    public void setStringEnd(String stringEnd) {
        this.stringEnd = stringEnd;
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        414  2007-05-01 10:48  bbs.classpath

     文件        282  2007-05-01 10:45  bbs.mymetadata

     文件       1343  2007-05-01 10:48  bbs.project

     文件        101  2007-05-01 11:04  bbs.settingsorg.eclipse.core.resources.prefs

     文件       9254  2007-05-05 15:45  bbsdbbsbs1.frm

     文件       7648  2009-01-06 15:28  bbsdbbsbs1.MYD

     文件       3072  2009-01-06 15:28  bbsdbbsbs1.MYI

     文件       8634  2007-05-05 15:45  bbsdbbsbslink.frm

     文件        460  2007-05-05 15:45  bbsdbbsbslink.MYD

     文件       2048  2007-05-05 15:45  bbsdbbsbslink.MYI

     文件       8698  2007-05-05 15:45  bbsdbbsbsnews.frm

     文件        188  2007-05-05 15:45  bbsdbbsbsnews.MYD

     文件       3072  2007-05-05 15:45  bbsdbbsbsnews.MYI

     文件       9604  2007-05-05 15:45  bbsdbbsoard.frm

     文件       1392  2009-01-06 15:28  bbsdbbsoard.MYD

     文件       2048  2009-01-06 15:28  bbsdbbsoard.MYI

     文件       8660  2007-05-05 15:45  bbsdbbsookmark.frm

     文件        184  2007-05-05 15:45  bbsdbbsookmark.MYD

     文件       3072  2007-05-05 15:45  bbsdbbsookmark.MYI

     文件       8576  2007-05-05 15:45  bbsdbbsclass.frm

     文件        220  2007-05-05 15:45  bbsdbbsclass.MYD

     文件       1024  2007-05-05 15:45  bbsdbbsclass.MYI

     文件      10856  2007-05-05 15:45  bbsdbbsconfig.frm

     文件        644  2009-01-06 15:28  bbsdbbsconfig.MYD

     文件       1024  2009-01-06 15:28  bbsdbbsconfig.MYI

     文件       8656  2007-05-05 15:45  bbsdbbsfriend.frm

     文件          0  2007-05-05 15:45  bbsdbbsfriend.MYD

     文件       1024  2007-05-05 15:45  bbsdbbsfriend.MYI

     文件       8684  2007-05-05 15:45  bbsdbbslog.frm

     文件        448  2007-05-05 15:45  bbsdbbslog.MYD

............此处省略615个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)