org.radeox.util
Class Encoder

java.lang.Object
  extended byorg.radeox.util.Encoder

public class Encoder
extends java.lang.Object


Constructor Summary
Encoder()
           
 
Method Summary
static java.lang.String escape(java.lang.String str)
          Encoder special characters that may occur in a HTML so it can be displayed safely.
static char toChar(java.lang.String number)
           
static java.lang.String toEntity(int c)
           
static java.lang.String unescape(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encoder

public Encoder()
Method Detail

escape

public static java.lang.String escape(java.lang.String str)
Encoder special characters that may occur in a HTML so it can be displayed safely.

Parameters:
str - the original string
Returns:
the escaped string

unescape

public static java.lang.String unescape(java.lang.String str)

toEntity

public static java.lang.String toEntity(int c)

toChar

public static char toChar(java.lang.String number)


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.