com.notuvy.util
Class PlainTextFilter
java.lang.Object
com.notuvy.util.PlainTextFilter
public class PlainTextFilter
- extends Object
A tool to transform strings to plain text.
This is done by translating non-ascii character to ascii equivalents,
and by translating entity characters.
Because the result may be unsed in HTML, the entity translation can be
skipped. In some cases, the non-ASCII character is first converted into
its HTML entity equivalent (in case that is the intended use). It may
then be translated from and entity to it's ASCII equivalent (potentially
multiple characters).
A full table of unicode values for characters can be found at
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
http://www.ssec.wisc.edu/~tomw/java/unicode.html
User: murali
Date: Apr 27, 2010
Time: 9:54:16 AM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainTextFilter
public PlainTextFilter()
isDoEntity
public boolean isDoEntity()
setDoEntity
public PlainTextFilter setDoEntity(boolean pDoEntity)
fix
public String fix(String pInput)
Copyright © 2013. All Rights Reserved.