|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.html.HtmlEncoder
public final class 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 Summary | |
|---|---|
static String |
encode(BaseColor color)
Converts a BaseColor into a HTML representation of this BaseColor. |
static String |
encode(String string)
Converts a String to the HTML-format of this String. |
static String |
getAlignment(int alignment)
Translates the alignment value. |
static boolean |
isNewLineTag(String tag)
Returns true if the tag causes a new line like p, br etc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String encode(String string)
String to the HTML-format of this String.
string - The String to convert
Stringpublic static String encode(BaseColor color)
BaseColor into a HTML representation of this BaseColor.
color - the BaseColor that has to be converted.
public static String getAlignment(int alignment)
alignment - the alignment value
public static boolean isNewLineTag(String tag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||