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

Version:
2.0, 05/07/02 Copyright (C) Markus Gebhard 2000-2002 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Author:
Markus Gebhard

Method Summary
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.
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


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.



Copyright 2003 - 2006