org.htmlcleaner
Class SpecialEntities

java.lang.Object
  extended by org.htmlcleaner.SpecialEntities

public class SpecialEntities
extends Object

This class contains map with special entities used in HTML and their unicodes.

Created by: Vladimir Nikic
Date: November, 2006.


Field Summary
static SpecialEntities INSTANCE
           
static char NON_BREAKABLE_SPACE
           
 
Constructor Summary
SpecialEntities(boolean greek, boolean math)
           
 
Method Summary
 int getMaxEntityLength()
           
 SpecialEntity getSpecialEntity(String seq)
           
 SpecialEntity getSpecialEntityByUnicode(int unicodeCharcode)
           
 void put(SpecialEntity specialEntity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SpecialEntities INSTANCE

NON_BREAKABLE_SPACE

public static final char NON_BREAKABLE_SPACE
See Also:
Constant Field Values
Constructor Detail

SpecialEntities

public SpecialEntities(boolean greek,
                       boolean math)
Method Detail

getSpecialEntity

public SpecialEntity getSpecialEntity(String seq)
Parameters:
seq - may have a leading & and/or trailing ; ( those will be removed prior to comparision)
Returns:
SpecialEntity if found.

getSpecialEntityByUnicode

public SpecialEntity getSpecialEntityByUnicode(int unicodeCharcode)

put

public void put(SpecialEntity specialEntity)

getMaxEntityLength

public int getMaxEntityLength()


Copyright © 2006-2014. All Rights Reserved.