Package com.iizix.text
Class HTMLCharacterEntities
- java.lang.Object
-
- com.iizix.text.HTMLCharacterEntities
-
public class HTMLCharacterEntities extends java.lang.Object
Table for HTML character entities.Built on Wed May 09 16:29:49 CEST 2012 by Christopher Mindus from:
- http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent
- http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent
- http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent- Author:
- com.iizix.text.util.BuildHTMLCharacterEntities
-
-
Constructor Summary
Constructors Constructor Description HTMLCharacterEntities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getChars(java.lang.String string)
Maps a String character entity to character(s).static java.lang.String
getWrongCaseChars(java.lang.String string)
Maps a String character entity to a char.
-
-
-
Method Detail
-
getChars
public static final java.lang.String getChars(java.lang.String string)
Maps a String character entity to character(s). The string should only contain the actual text, not the surrounding "&...;" decoration.- Parameters:
string
- The string without decorations, case sensitive, i.e. not including leading '&' and trailing ';'.- Returns:
- The character(s) corresponding with the entity string, or
null
if not matching.
-
getWrongCaseChars
public static final java.lang.String getWrongCaseChars(java.lang.String string)
Maps a String character entity to a char. The string should only contain the actual text, not the surrounding "&...;" decoration.- Parameters:
string
- The string without decorations, case sensitive, i.e. not including leading '&' and trailing ';'.- Returns:
null
if OK, otherwise the correct case string.
-
-