|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.html.Unicode2HtmlConverter
Standard HTML Character Converter
Field Summary | |
static java.util.Map |
ENTITIES
HTML Entities Map |
private static java.lang.String |
HTML_BREAK
Line break HTML tag |
Constructor Summary | |
Unicode2HtmlConverter()
|
Method Summary | |
protected java.lang.String |
convert(char c)
Converts one single character |
java.lang.String |
convertMultiLineString(java.lang.String source)
Method to convert a multiple line string |
java.lang.String |
convertString(java.lang.String source)
Method to convert an (single line) String or an attribute value. |
private static void |
register(java.lang.String entity,
int code)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String HTML_BREAK
public static java.util.Map ENTITIES
Constructor Detail |
public Unicode2HtmlConverter()
Method Detail |
private static void register(java.lang.String entity, int code)
public java.lang.String convertString(java.lang.String source)
CharacterConverter
convertString
in interface CharacterConverter
source
- The source for conversion
CharacterConverter.convertString(java.lang.String)
public java.lang.String convertMultiLineString(java.lang.String source)
CharacterConverter
convertMultiLineString
in interface CharacterConverter
source
- The source for conversion
CharacterConverter.convertMultiLineString(java.lang.String)
protected java.lang.String convert(char c)
c
- Character to convert
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |