gran.tools.textfilter
Class AccentedFilter

java.lang.Object
  extended bygran.tools.textfilter.AccentedFilter

public class AccentedFilter
extends java.lang.Object


Constructor Summary
AccentedFilter()
           
 
Method Summary
static java.lang.String escape(java.lang.String nonHTMLsrc)
          This method will take the input and escape characters that have an HTML entity representation.
static void main(java.lang.String[] args)
           
static java.lang.String unescape(java.lang.String HTMLsrc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccentedFilter

public AccentedFilter()
Method Detail

escape

public static final java.lang.String escape(java.lang.String nonHTMLsrc)
This method will take the input and escape characters that have an HTML entity representation. It uses a quick string -> array mapping to avoid creating thousands of temporary objects.

Parameters:
nonHTMLsrc - String containing the text to make HTML-safe
Returns:
String containing new copy of string with ENTITIES escaped

unescape

public static final java.lang.String unescape(java.lang.String HTMLsrc)

main

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


Copyright © 2002-2005 TrackStudio, Ltd. All Rights Reserved.