Package org.smooks.xml
Class HTMLEntityLookup
- java.lang.Object
-
- org.smooks.xml.HTMLEntityLookup
-
public abstract class HTMLEntityLookup extends Object
- Author:
- Tom Fennelly
-
-
Constructor Summary
Constructors Constructor Description HTMLEntityLookup()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Character
getCharacterCode(String entityName)
Get the character code for the given entity reference name.static String
getEntityRef(char charCode)
Get the entity reference name for the given character code.
-
-
-
Method Detail
-
getCharacterCode
public static Character getCharacterCode(String entityName)
Get the character code for the given entity reference name.- Parameters:
entityName
- The entity name for the character code being sought.- Returns:
- The character code for the entity, or null if it doesn't exist in the table.
-
getEntityRef
public static String getEntityRef(char charCode)
Get the entity reference name for the given character code.- Parameters:
charCode
- The character code of the entity reference name being sought.- Returns:
- The entity reference name, or null if it doesn't exist in the table.
-
-