当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
EntityTable - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.format.util
Class EntityTable
java.lang.Object
org.jboss.portal.format.util.EntityTable
- Direct Known Subclasses:
- EntityTable.BasicEntityTable
- public class EntityTable
- extends java.lang.Object
This table provides lookup for converting a char to its HTML entity representation.
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.
charToEntity
private java.lang.String[] charToEntity
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)