⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entitydecoder.java

📁 使用工具jublider开发的一个聊天室实现基本功能,
💻 JAVA
字号:
/**
 * Copyright (C) 2003  Manfred Andres
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package freecs.util;

import java.util.StringTokenizer;

public class EntityDecoder {
    private EntityDecoder () {
        // not instanciable
    }
    
    public final static String htmlEntities[] = { "€", "", "‚",
            "ƒ", "„", "…", "†", "‡", "ˆ",
            "‰", "Š", "‹", "Œ", "", "Ž", "",
            "", "‘", "’", "“", "”", "•",
            "–", "—", "˜", "™", "š", "›",
            "œ", "", "ž", "Ÿ", " ", "¡", "¢",
            "£", "¤", "¥", "¦", "§", "¨",
            "©", "ª", "«", "¬", "­", "®", "¯",
            "°", "±", "²", "³", "´", "µ",
            "¶", "·", "¸", "¹", "º", "»",
            "¼", "½", "¾", "¿", "À",
            "Á", "Â", "Ã", "Ä", "Å", "Æ",
            "Ç", "È", "É", "Ê", "Ë",
            "Ì", "Í", "Î", "Ï", "Ð", "Ñ",
            "Ò", "Ó", "Ô", "Õ", "Ö", "×",
            "Ø", "Ù", "Ú", "Û", "Ü",
            "Ý", "Þ", "ß", "à", "á",
            "â", "ã", "ä", "å", "æ", "ç",
            "è", "é", "ê", "ë", "ì",
            "í", "î", "ï", "ð", "ñ", "ò",
            "ó", "ô", "õ", "ö", "÷",
            "ø", "ù", "ú", "û", "ü",
            "ý", "þ", "ÿ"};
    
	public final static String entities[] = { "F6", "E4", "FC", "D6", "C4",
            "DC", "DF", "3F", "5C", "2C", "3A", "3B", "23", "2B", "7E", "21",
            "22", "A7", "24", "25", "26", "28", "29", "3D", "3C", "3E", "7B",
            "5B", "5D", "7D", "2F", "E2", "EA", "EE", "F4", "FB", "C2", "CA",
            "CE", "D4", "DB", "E1", "E9", "ED", "F3", "FA", "C1", "C9", "CD",
            "D3", "DA", "E0", "E8", "EC", "F2", "F9", "C1", "C9", "CD", "D3",
            "DA", "B0", "B3", "B2", "80", "7C", "5E", "60", "B4", "27", "20",
            "40", "98", "2A"};
	
	public final static String charsHtml[] = { "

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -