Package org.htmlcleaner
Class SpecialEntity
- java.lang.Object
-
- org.htmlcleaner.SpecialEntity
-
public class SpecialEntity extends Object
-
-
Constructor Summary
Constructors Constructor Description SpecialEntity(String key, int intCode, String htmlString, boolean htmlSpecialEntity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharValue()StringgetDecimalNCR()StringgetEscaped(boolean htmlEscaped)StringgetEscapedValue()StringgetEscapedXmlString()StringgetHexNCR()StringgetHtmlString()StringgetKey()intintValue()booleanisHtmlSpecialEntity()
-
-
-
Method Detail
-
getKey
public String getKey()
- Returns:
- the key
-
intValue
public int intValue()
- Returns:
- the intCode
-
getHtmlString
public String getHtmlString()
- Returns:
- the domString
-
getEscapedXmlString
public String getEscapedXmlString()
-
getEscaped
public String getEscaped(boolean htmlEscaped)
-
isHtmlSpecialEntity
public boolean isHtmlSpecialEntity()
- Returns:
- the translateSpecialEntities
-
charValue
public char charValue()
- Returns:
intValue()cast to an char
-
getDecimalNCR
public String getDecimalNCR()
- Returns:
- Numeric Character Reference in decimal format
-
getHexNCR
public String getHexNCR()
- Returns:
- Numeric Character Reference in hex format
-
getEscapedValue
public String getEscapedValue()
- Returns:
- Escaped value of the entity
-
-