Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.format.util
Class EntityTable

    java.lang.Object
      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` | `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)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD