KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > htmlcleaner > SpecialEntities


1 /* Copyright (c) 2006-2007, Vladimir Nikic
2     All rights reserved.
3     
4     Redistribution and use of this software in source and binary forms,
5     with or without modification, are permitted provided that the following
6     conditions are met:
7     
8     * Redistributions of source code must retain the above
9       copyright notice, this list of conditions and the
10       following disclaimer.
11     
12     * Redistributions in binary form must reproduce the above
13       copyright notice, this list of conditions and the
14       following disclaimer in the documentation and/or other
15       materials provided with the distribution.
16     
17     * The name of HtmlCleaner may not be used to endorse or promote
18       products derived from this software without specific prior
19       written permission.
20
21     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22     AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24     ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25     LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26     CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28     INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31     POSSIBILITY OF SUCH DAMAGE.
32     
33     You can contact Vladimir Nikic by sending e-mail to
34     nikic_vladimir@yahoo.com. Please include the word "HtmlCleaner" in the
35     subject line.
36 */

37
38 package org.htmlcleaner;
39
40 import java.util.HashMap JavaDoc;
41 import java.util.Map JavaDoc;
42
43 /**
44  * <p>This class contains map with special entities used in HTML and their
45  * unicodes.</p>
46  *
47  * Created by: Vladimir Nikic<br/>
48  * Date: November, 2006.
49  */

50 public class SpecialEntities {
51     
52     static Map JavaDoc entities = new HashMap JavaDoc();
53
54     static {
55         entities.put("nbsp", new Integer JavaDoc(160));
56         entities.put("iexcl", new Integer JavaDoc(161));
57         entities.put("curren", new Integer JavaDoc(164));
58         entities.put("cent", new Integer JavaDoc(162));
59         entities.put("pound", new Integer JavaDoc(163));
60         entities.put("yen", new Integer JavaDoc(165));
61         entities.put("brvbar", new Integer JavaDoc(166));
62         entities.put("sect", new Integer JavaDoc(167));
63         entities.put("uml", new Integer JavaDoc(168));
64         entities.put("copy", new Integer JavaDoc(169));
65         entities.put("ordf", new Integer JavaDoc(170));
66         entities.put("laquo", new Integer JavaDoc(171));
67         entities.put("not", new Integer JavaDoc(172));
68         entities.put("shy", new Integer JavaDoc(173));
69         entities.put("reg", new Integer JavaDoc(174));
70         entities.put("trade", new Integer JavaDoc(8482));
71         entities.put("macr", new Integer JavaDoc(175));
72         entities.put("deg", new Integer JavaDoc(176));
73         entities.put("plusmn", new Integer JavaDoc(177));
74         entities.put("sup2", new Integer JavaDoc(178));
75         entities.put("sup3", new Integer JavaDoc(179));
76         entities.put("acute", new Integer JavaDoc(180));
77         entities.put("micro", new Integer JavaDoc(181));
78         entities.put("para", new Integer JavaDoc(182));
79         entities.put("middot", new Integer JavaDoc(183));
80         entities.put("cedil", new Integer JavaDoc(184));
81         entities.put("sup1", new Integer JavaDoc(185));
82         entities.put("ordm", new Integer JavaDoc(186));
83         entities.put("raquo", new Integer JavaDoc(187));
84         entities.put("frac14", new Integer JavaDoc(188));
85         entities.put("frac12", new Integer JavaDoc(189));
86         entities.put("frac34", new Integer JavaDoc(190));
87         entities.put("iquest", new Integer JavaDoc(191));
88         entities.put("times", new Integer JavaDoc(215));
89         entities.put("divide", new Integer JavaDoc(247));
90
91         entities.put("Agrave", new Integer JavaDoc(192));
92         entities.put("Aacute", new Integer JavaDoc(193));
93         entities.put("Acirc", new Integer JavaDoc(194));
94         entities.put("Atilde", new Integer JavaDoc(195));
95         entities.put("Auml", new Integer JavaDoc(196));
96         entities.put("Aring", new Integer JavaDoc(197));
97         entities.put("AElig", new Integer JavaDoc(198));
98         entities.put("Ccedil", new Integer JavaDoc(199));
99         entities.put("Egrave", new Integer JavaDoc(200));
100         entities.put("Eacute", new Integer JavaDoc(201));
101         entities.put("Ecirc", new Integer JavaDoc(202));
102         entities.put("Euml", new Integer JavaDoc(203));
103         entities.put("Igrave", new Integer JavaDoc(204));
104         entities.put("Iacute", new Integer JavaDoc(205));
105         entities.put("Icirc", new Integer JavaDoc(206));
106         entities.put("Iuml", new Integer JavaDoc(207));
107         entities.put("ETH", new Integer JavaDoc(208));
108         entities.put("Ntilde", new Integer JavaDoc(209));
109         entities.put("Ograve", new Integer JavaDoc(210));
110         entities.put("Oacute", new Integer JavaDoc(211));
111         entities.put("Ocirc", new Integer JavaDoc(212));
112         entities.put("Otilde", new Integer JavaDoc(213));
113         entities.put("Ouml", new Integer JavaDoc(214));
114         entities.put("Oslash", new Integer JavaDoc(216));
115         entities.put("Ugrave", new Integer JavaDoc(217));
116         entities.put("Uacute", new Integer JavaDoc(218));
117         entities.put("Ucirc", new Integer JavaDoc(219));
118         entities.put("Uuml", new Integer JavaDoc(220));
119         entities.put("Yacute", new Integer JavaDoc(221));
120         entities.put("THORN", new Integer JavaDoc(222));
121         entities.put("szlig", new Integer JavaDoc(223));
122         entities.put("agrave", new Integer JavaDoc(224));
123         entities.put("aacute", new Integer JavaDoc(225));
124         entities.put("acirc", new Integer JavaDoc(226));
125         entities.put("atilde", new Integer JavaDoc(227));
126         entities.put("auml", new Integer JavaDoc(228));
127         entities.put("aring", new Integer JavaDoc(229));
128         entities.put("aelig", new Integer JavaDoc(230));
129         entities.put("ccedil", new Integer JavaDoc(231));
130         entities.put("egrave", new Integer JavaDoc(232));
131         entities.put("eacute", new Integer JavaDoc(233));
132         entities.put("ecirc", new Integer JavaDoc(234));
133         entities.put("euml", new Integer JavaDoc(235));
134         entities.put("igrave", new Integer JavaDoc(236));
135         entities.put("iacute", new Integer JavaDoc(237));
136         entities.put("icirc", new Integer JavaDoc(238));
137         entities.put("iuml", new Integer JavaDoc(239));
138         entities.put("eth", new Integer JavaDoc(240));
139         entities.put("ntilde", new Integer JavaDoc(241));
140         entities.put("ograve", new Integer JavaDoc(242));
141         entities.put("oacute", new Integer JavaDoc(243));
142         entities.put("ocirc", new Integer JavaDoc(244));
143         entities.put("otilde", new Integer JavaDoc(245));
144         entities.put("ouml", new Integer JavaDoc(246));
145         entities.put("oslash", new Integer JavaDoc(248));
146         entities.put("ugrave", new Integer JavaDoc(249));
147         entities.put("uacute", new Integer JavaDoc(250));
148         entities.put("ucirc", new Integer JavaDoc(251));
149         entities.put("uuml", new Integer JavaDoc(252));
150         entities.put("yacute", new Integer JavaDoc(253));
151         entities.put("thorn", new Integer JavaDoc(254));
152         entities.put("yuml", new Integer JavaDoc(255));
153
154         entities.put("OElig", new Integer JavaDoc(338));
155         entities.put("oelig", new Integer JavaDoc(339));
156         entities.put("Scaron", new Integer JavaDoc(352));
157         entities.put("scaron", new Integer JavaDoc(353));
158         entities.put("Yuml", new Integer JavaDoc(376));
159         entities.put("circ", new Integer JavaDoc(710));
160         entities.put("tilde", new Integer JavaDoc(732));
161         entities.put("ensp", new Integer JavaDoc(8194));
162         entities.put("emsp", new Integer JavaDoc(8195));
163         entities.put("thinsp", new Integer JavaDoc(8201));
164         entities.put("zwnj", new Integer JavaDoc(8204));
165         entities.put("zwj", new Integer JavaDoc(8205));
166         entities.put("lrm", new Integer JavaDoc(8206));
167         entities.put("rlm", new Integer JavaDoc(8207));
168         entities.put("ndash", new Integer JavaDoc(8211));
169         entities.put("mdash", new Integer JavaDoc(8212));
170         entities.put("lsquo", new Integer JavaDoc(8216));
171         entities.put("rsquo", new Integer JavaDoc(8217));
172         entities.put("sbquo", new Integer JavaDoc(8218));
173         entities.put("ldquo", new Integer JavaDoc(8220));
174         entities.put("rdquo", new Integer JavaDoc(8221));
175         entities.put("bdquo", new Integer JavaDoc(8222));
176         entities.put("dagger", new Integer JavaDoc(8224));
177         entities.put("Dagger", new Integer JavaDoc(8225));
178         entities.put("hellip", new Integer JavaDoc(8230));
179         entities.put("permil", new Integer JavaDoc(8240));
180         entities.put("lsaquo", new Integer JavaDoc(8249));
181         entities.put("rsaquo", new Integer JavaDoc(8250));
182         entities.put("euro", new Integer JavaDoc(8364));
183     }
184     
185 }
Popular Tags