| java.lang.Object de.java2html.util.HtmlUtilities
HtmlUtilities | public class HtmlUtilities (Code) | | 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
author: Markus Gebhard version: 2.0, 05/07/02 version: Copyright (C) Markus Gebhard 2000-2002 version: This program is free software; you can redistribute it and/or version: modify it under the terms of the GNU General Public License version: as published by the Free Software Foundation; either version 2 version: of the License, or (at your option) any later version. version: This program is distributed in the hope that it will be useful, version: but WITHOUT ANY WARRANTY; without even the implied warranty of version: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the version: GNU General Public License for more details. version: You should have received a copy of the GNU General Public License version: along with this program; if not, write to the Free Software version: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
Method Summary | |
protected static void | buildEntityTables() | final public static String | encode(String s, String ignore) Converts a String to HTML by converting all special characters to
HTML-entities. | final public static String | encode(String s, int start, int end, String ignore) Converts a String to HTML by converting all special characters to
HTML-entities. | final protected static String | encodeSingleChar(String ch) | final public static String | toHTML(RGB color) Converts the given Color object to a String contaning the html
description of the color. |
buildEntityTables | protected static void buildEntityTables()(Code) | | |
encode | final public static String encode(String s, String ignore)(Code) | | Converts a String to HTML by converting all special characters to
HTML-entities.
|
encode | final public static String encode(String s, int start, int end, String ignore)(Code) | | Converts a String to HTML by converting all special characters to
HTML-entities. Only s,substring(start,end) will be encoded.
|
encodeSingleChar | final protected static String encodeSingleChar(String ch)(Code) | | Converts a single character to HTML
|
toHTML | final public static String toHTML(RGB color)(Code) | | Converts the given Color object to a String contaning the html
description of the color. E.g.: #FF8080.
|
|
|