Milyn-Commons Version 0.6

org.milyn.xml
Class HTMLEntityLookup

java.lang.Object
  extended byorg.milyn.xml.HTMLEntityLookup

public abstract class HTMLEntityLookup
extends java.lang.Object

Author:
Tom Fennelly

Constructor Summary
HTMLEntityLookup()
           
 
Method Summary
static java.lang.Character getCharacterCode(java.lang.String entityName)
          Get the character code for the given entity reference name.
static java.lang.String getEntityRef(char charCode)
          Get the entity reference name for the given character code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLEntityLookup

public HTMLEntityLookup()
Method Detail

getCharacterCode

public static java.lang.Character getCharacterCode(java.lang.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 java.lang.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.

Milyn-Commons Version 0.6