com.cc.framework.ui.html
Class Unicode2HtmlConverter

java.lang.Object
  extended bycom.cc.framework.ui.html.Unicode2HtmlConverter
All Implemented Interfaces:
CharacterConverter

public class Unicode2HtmlConverter
extends java.lang.Object
implements CharacterConverter

Standard HTML Character Converter

Version:
$Revision$
Author:
Harald Schulz

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

HTML_BREAK

private static final java.lang.String HTML_BREAK
Line break HTML tag

See Also:
Constant Field Values

ENTITIES

public static java.util.Map ENTITIES
HTML Entities Map

Constructor Detail

Unicode2HtmlConverter

public Unicode2HtmlConverter()
Method Detail

register

private static void register(java.lang.String entity,
                             int code)

convertString

public java.lang.String convertString(java.lang.String source)
Description copied from interface: CharacterConverter
Method to convert an (single line) String or an attribute value.

Specified by:
convertString in interface CharacterConverter
Parameters:
source - The source for conversion
Returns:
String converted attribute
See Also:
CharacterConverter.convertString(java.lang.String)

convertMultiLineString

public java.lang.String convertMultiLineString(java.lang.String source)
Description copied from interface: CharacterConverter
Method to convert a multiple line string

Specified by:
convertMultiLineString in interface CharacterConverter
Parameters:
source - The source for conversion
Returns:
String converted String
See Also:
CharacterConverter.convertMultiLineString(java.lang.String)

convert

protected java.lang.String convert(char c)
Converts one single character

Parameters:
c - Character to convert
Returns:
Encoded character


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.