org.jboss.portal.format.util
Class EntityTable
java.lang.Object
   org.jboss.portal.format.util.EntityTable
org.jboss.portal.format.util.EntityTable
- public class EntityTable 
- extends java.lang.Object
This table provides lookup for converting a char to its HTML entity representation.
| Field Summary | 
| static EntityTable | BASICAll HTML entities except the HTML chars which are used to do HTML itself.
 | 
| static EntityTable | FULLAll HTML entities.
 | 
 
 
| Method Summary | 
|  java.lang.String | convertEntities(java.lang.String txt)
 | 
|  java.lang.String | lookup(char c)Returns null if no entity is found or return the converted entity.
 | 
| protected  void | put(int c,
    java.lang.String entity)
 | 
| protected  void | remove(int c)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FULL
public static final EntityTable FULL
- All HTML entities.
 
 
BASIC
public static final EntityTable BASIC
- All HTML entities except the HTML chars which are used to do HTML itself.
 
 
EntityTable
protected EntityTable()
put
protected final void put(int c,
                         java.lang.String entity)
- 
 
remove
protected final void remove(int c)
- 
 
lookup
public final java.lang.String lookup(char c)
- Returns null if no entity is found or return the converted entity.
 
- 
 
convertEntities
public final java.lang.String convertEntities(java.lang.String txt)
-