de.java2html.util
Class HtmlUtilities

java.lang.Object
  extended by de.java2html.util.HtmlUtilities

public class HtmlUtilities
extends java.lang.Object

Some methods for converting text to valid HTML. For questions, suggestions, bug-reports, enhancement-requests etc. I may be contacted at: markus@jave.de The Java2html home page is located at: http://www.java2html.de


Method Summary
protected static void buildEntityTables()
           
static java.lang.String encode(java.lang.String s, int start, int end, java.lang.String ignore)
          Converts a String to HTML by converting all special characters to HTML-entities.
static java.lang.String encode(java.lang.String s, java.lang.String ignore)
          Converts a String to HTML by converting all special characters to HTML-entities.
protected static java.lang.String encodeSingleChar(java.lang.String ch)
          Converts a single character to HTML
static java.lang.String toHTML(RGB color)
          Converts the given Color object to a String contaning the html description of the color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildEntityTables

protected static void buildEntityTables()

encode

public static final java.lang.String encode(java.lang.String s,
                                            java.lang.String ignore)
Converts a String to HTML by converting all special characters to HTML-entities.


encode

public static final java.lang.String encode(java.lang.String s,
                                            int start,
                                            int end,
                                            java.lang.String ignore)
Converts a String to HTML by converting all special characters to HTML-entities. Only s,substring(start,end) will be encoded.


encodeSingleChar

protected static final java.lang.String encodeSingleChar(java.lang.String ch)
Converts a single character to HTML


toHTML

public static final java.lang.String toHTML(RGB color)
Converts the given Color object to a String contaning the html description of the color. E.g.: #FF8080.