com.lowagie.text.html
Class HtmlEncoder

java.lang.Object
  extended bycom.lowagie.text.html.HtmlEncoder

public class HtmlEncoder
extends java.lang.Object

This class converts a String to the HTML-format of a String.

To convert the String, each character is examined:

Example:

    String htmlPresentation = HtmlEncoder.encode("Marie-Thérèse Sørensen");
 

for more info: see O'Reilly; "HTML: The Definitive Guide" (page 164)

Author:
mario.maccarini@rug.ac.be

Method Summary
static java.lang.String encode(java.awt.Color color)
          Converts a Color into a HTML representation of this Color.
static java.lang.String encode(java.lang.String string)
          Converts a String to the HTML-format of this String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static java.lang.String encode(java.lang.String string)
Converts a String to the HTML-format of this String.

Parameters:
string - The String to convert
Returns:
a String

encode

public static java.lang.String encode(java.awt.Color color)
Converts a Color into a HTML representation of this Color.

Parameters:
color - the Color that has to be converted.
Returns:
the HTML representation of this Color


Copyright © 2003-2004 SourceForge. All Rights Reserved.