Jwma

dtw.webmail.util
Class EntityHandler

java.lang.Object
  |
  +--dtw.webmail.util.EntityHandler

public class EntityHandler
extends java.lang.Object

Utility class for handling entities.
Exposes a method for encoding HTML unsafe characters into entities. In the future it might also expose a method for decoding entities into characters.

Version:
0.9.7 07/02/2003
Author:
Dieter Wimberger

Constructor Summary
EntityHandler()
           
 
Method Summary
static java.lang.String encode(java.lang.String input)
          Returns a String with all occurences of HTML unsafe characters replaced by their respective entities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityHandler

public EntityHandler()
Method Detail

encode

public static java.lang.String encode(java.lang.String input)
Returns a String with all occurences of HTML unsafe characters replaced by their respective entities.

Parameters:
input - the String to be encoded.
Returns:
a String without HTML unsafe chars.

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)