info.informatica.html
Class HTMLUtil

java.lang.Object
  extended by info.informatica.html.HTMLUtil

public class HTMLUtil
extends Object

HTML utilities.

Version:
1.01
Author:
amengual at informatica dot info

Constructor Summary
HTMLUtil()
           
 
Method Summary
static String charToEntity(char c)
          Converts a character in the corresponding HTML entity.
static String charToEntity(String t)
           
static String entityToChar(String t)
          Gets the character corresponding to a given HTML entity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLUtil

public HTMLUtil()
Method Detail

charToEntity

public static String charToEntity(String t)

charToEntity

public static String charToEntity(char c)
Converts a character in the corresponding HTML entity.

Parameters:
c - the character.
Returns:
the entity for the given character, null if no conversion available.

entityToChar

public static String entityToChar(String t)
Gets the character corresponding to a given HTML entity.

Parameters:
t - the HTML entity.
Returns:
the character.