Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » html » [javadoc | source]
com.lowagie.text.html
public final class: HtmlEncoder [javadoc | source]
java.lang.Object
   com.lowagie.text.html.HtmlEncoder
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)

Method from com.lowagie.text.html.HtmlEncoder Summary:
encode,   encode,   getAlignment
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.html.HtmlEncoder Detail:
 public static String encode(String string) 
    Converts a String to the HTML-format of this String.
 public static String encode(Color color) 
    Converts a Color into a HTML representation of this Color.
 public static String getAlignment(int alignment) 
    Translates the alignment value.