站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

EntityTable - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.format.util
Class EntityTable

java.lang.Object
  extended byorg.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 BASIC
          All HTML entities except the HTML chars which are used to do HTML itself.
static EntityTable FULL
          All HTML entities.
 
Constructor Summary
protected EntityTable()
           
 
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
 

Field Detail

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.

Constructor Detail

EntityTable

protected EntityTable()
Method Detail

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)