superwaba.ext.xplat.html
Class NamedEntitiesDereferencer
java.lang.Object
|
+--superwaba.ext.xplat.html.NamedEntitiesDereferencer
- public class NamedEntitiesDereferencer
- extends java.lang.Object
NamedEntitiesDereferencer provides an extremely fast way
to map Named Entities References to their corresponding Unicode value.
Note: the Entity table described below comes from the official XHTML
entity reference list. Also, notice that entity names are
case sensitive.
|
Method Summary |
static char |
toCode(byte[] b,
int offset,
int count)
Get the code associated to a key. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NamedEntitiesDereferencer
public NamedEntitiesDereferencer()
toCode
public static char toCode(byte[] b,
int offset,
int count)
- Get the code associated to a key.
- Parameters:
b - byte array containing the keyoffset - position of the first byte of the key in the arraycount - number of bytes composing the key- Returns:
- the corresponding character value, or 0 if invalid