All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.openly.util.Escaper

com.openly.util.Escaper

public class Escaper
extends java.lang.Object
A class to escape strings to prepare for a webpage or xml parser. Miles Poindexter, Openly Informatics, miles@openly.com


Variable Index

 o HTML
 o XML

Constructor Index

 o Escaper()

Method Index

 o addEscapeChar(String, String, int)
 o descape(String)
replace xml numeric and built-in entities with their Unicode equivalents (ü -> ü) 5/9/2002-esh
 o HTMLescape(String)
 o main(String[])
 o PARAMescape(String)
 o PARAMunescape(String)
 o XMLescape(String)
replace unicode characters with xml numeric and built-in entities (ü -> ü) 5/9/2002-esh

Variables

 o HTML
 public static final int HTML
 o XML
 public static final int XML

Constructors

 o Escaper
 public Escaper()

Methods

 o addEscapeChar
 public static void addEscapeChar(java.lang.String u,                                  java.lang.String e,                                  int where)
Parameters:
the - unencoded String
the - string to encode it with
 o HTMLescape
 public static java.lang.String HTMLescape(java.lang.String s)
 o PARAMescape
 public static java.lang.String PARAMescape(java.lang.String s)
 o PARAMunescape
 public static java.lang.String PARAMunescape(java.lang.String s)
 o XMLescape
 public static java.lang.String XMLescape(java.lang.String string)
replace unicode characters with xml numeric and built-in entities (ü -> ü) 5/9/2002-esh

 o descape
 public static java.lang.String descape(java.lang.String s)
replace xml numeric and built-in entities with their Unicode equivalents (ü -> ü) 5/9/2002-esh

 o main
 public static void main(java.lang.String params[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index