Package totalcross.ui.html
Class TagDereferencer
- java.lang.Object
-
- totalcross.ui.html.TagDereferencer
-
public class TagDereferencer extends java.lang.ObjectNamedEntitiesDereferencerprovides an extremely fast way to map the set of known HTML tags to unique integer values.Note: the Elements described below comes from the HTML 4.01 DTD with IE extensions. Also, notice that tag names are case insensitive.
-
-
Field Summary
Fields Modifier and Type Field Description static intACode identifying a "A" tagstatic intABBRCode identifying a "ABBR" tagstatic intACRONYMCode identifying a "ACRONYM" tagstatic intADDRESSCode identifying a "ADDRESS" tagstatic intAPPLETCode identifying a "APPLET" tagstatic intAREACode identifying a "AREA" tagstatic intBCode identifying a "B" tagstatic intBASECode identifying a "BASE" tagstatic intBASEFONTCode identifying a "BASEFONT" tagstatic intBDOCode identifying a "BDO" tagstatic intBIGCode identifying a "BIG" tagstatic intBLOCKQUOTECode identifying a "BLOCKQUOTE" tagstatic intBODYCode identifying a "BODY" tagstatic intBRCode identifying a "BR" tagstatic intBUTTONCode identifying a "BUTTON" tagstatic intCAPTIONCode identifying a "CAPTION" tagstatic intCENTERCode identifying a "CENTER" tagstatic intCITECode identifying a "CITE" tagstatic intCODECode identifying a "CODE" tagstatic intCOLCode identifying a "COL" tagstatic intCOLGROUPCode identifying a "COLGROUP" tagstatic intCOMMENTCode identifying a "COMMENT" tagstatic intDDCode identifying a "DD" tagstatic intDELCode identifying a "DEL" tagstatic intDFNCode identifying a "DFN" tagstatic intDIRCode identifying a "DIR" tagstatic intDIVCode identifying a "DIV" tagstatic intDLCode identifying a "DL" tagstatic intDTCode identifying a "DT" tagstatic intEMCode identifying a "EM" tagstatic intEMBEDCode identifying a "EMBED" tagstatic intFIELDSETCode identifying a "FIELDSET" tagstatic intFONTCode identifying a "FONT" tagstatic intFORMCode identifying a "FORM" tagstatic intFRAMECode identifying a "FRAME" tagstatic intFRAMESETCode identifying a "FRAMESET" tagstatic intH1Code identifying a "H1" tagstatic intH2Code identifying a "H2" tagstatic intH3Code identifying a "H3" tagstatic intH4Code identifying a "H4" tagstatic intH5Code identifying a "H5" tagstatic intH6Code identifying a "H6" tagstatic intHEADCode identifying a "HEAD" tagstatic intHRCode identifying a "HR" tagstatic intHTMLCode identifying a "HTML" tagstatic intICode identifying a "I" tagstatic intIFRAMECode identifying a "IFRAME" tagstatic intIMGCode identifying a "IMG" tagstatic intINPUTCode identifying a "INPUT" tagstatic intINSCode identifying a "INS" tagstatic intISINDEXCode identifying a "ISINDEX" tagstatic intKBDCode identifying a "KBD" tagstatic intLABELCode identifying a "LABEL" tagstatic intLEGENDCode identifying a "LEGEND" tagstatic intLICode identifying a "LI" tagstatic intLINKCode identifying a "LINK" tagstatic intMAPCode identifying a "MAP" tagstatic intMENUCode identifying a "MENU" tagstatic intMETACode identifying a "META" tagstatic intNOFRAMESCode identifying a "NOFRAMES" tagstatic intNOSCRIPTCode identifying a "NOSCRIPT" tagstatic intOBJECTCode identifying a "OBJECT" tagstatic intOLCode identifying a "OL" tagstatic intOPTGROUPCode identifying a "OPTGROUP" tagstatic intOPTIONCode identifying a "OPTION" tagstatic intPCode identifying a "P" tagstatic intPARAMCode identifying a "PARAM" tagstatic intPLAINTEXTCode identifying a "PLAINTEXT" tagstatic intPRECode identifying a "PRE" tagstatic intQCode identifying a "Q" tagstatic intSCode identifying a "S" tagstatic intSAMPCode identifying a "SAMP" tagstatic intSCRIPTCode identifying a "SCRIPT" tagstatic intSELECTCode identifying a "SELECT" tagstatic intSMALLCode identifying a "SMALL" tagstatic intSPANCode identifying a "SPAN" tagstatic intSTRIKECode identifying a "STRIKE" tagstatic intSTRONGCode identifying a "STRONG" tagstatic intSTYLECode identifying a "STYLE" tagstatic intSUBCode identifying a "SUB" tagstatic intSUPCode identifying a "SUP" tagstatic intTABLECode identifying a "TABLE" tagstatic intTBODYCode identifying a "TBODY" tagstatic intTDCode identifying a "TD" tagstatic intTEXTAREACode identifying a "TEXTAREA" tagstatic intTFOOTCode identifying a "TFOOT" tagstatic intTHCode identifying a "TH" tagstatic intTHEADCode identifying a "THEAD" tagstatic intTITLECode identifying a "TITLE" tagstatic intTRCode identifying a "TR" tagstatic intTTCode identifying a "TT" tagstatic intUCode identifying a "U" tagstatic intULCode identifying a "UL" tagstatic intUNKNOWNCode identifying an unknown, possibly invalid, tagstatic intVARCode identifying a "VAR" tagstatic intWBRCode identifying a "WBR" tagstatic intXMPCode identifying a "XMP" tag
-
Constructor Summary
Constructors Constructor Description TagDereferencer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static inthashCode(byte[] b, int offset, int count)Returns the hash code of the given string, automatically converting the chars to upper case.static chartoCode(byte[] b, int offset, int count)Get the code associated to a key.
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
Code identifying an unknown, possibly invalid, tag- See Also:
- Constant Field Values
-
A
public static final int A
Code identifying a "A" tag- See Also:
- Constant Field Values
-
ABBR
public static final int ABBR
Code identifying a "ABBR" tag- See Also:
- Constant Field Values
-
ACRONYM
public static final int ACRONYM
Code identifying a "ACRONYM" tag- See Also:
- Constant Field Values
-
ADDRESS
public static final int ADDRESS
Code identifying a "ADDRESS" tag- See Also:
- Constant Field Values
-
APPLET
public static final int APPLET
Code identifying a "APPLET" tag- See Also:
- Constant Field Values
-
AREA
public static final int AREA
Code identifying a "AREA" tag- See Also:
- Constant Field Values
-
B
public static final int B
Code identifying a "B" tag- See Also:
- Constant Field Values
-
BASE
public static final int BASE
Code identifying a "BASE" tag- See Also:
- Constant Field Values
-
BASEFONT
public static final int BASEFONT
Code identifying a "BASEFONT" tag- See Also:
- Constant Field Values
-
BDO
public static final int BDO
Code identifying a "BDO" tag- See Also:
- Constant Field Values
-
BIG
public static final int BIG
Code identifying a "BIG" tag- See Also:
- Constant Field Values
-
BLOCKQUOTE
public static final int BLOCKQUOTE
Code identifying a "BLOCKQUOTE" tag- See Also:
- Constant Field Values
-
BODY
public static final int BODY
Code identifying a "BODY" tag- See Also:
- Constant Field Values
-
BR
public static final int BR
Code identifying a "BR" tag- See Also:
- Constant Field Values
-
BUTTON
public static final int BUTTON
Code identifying a "BUTTON" tag- See Also:
- Constant Field Values
-
CAPTION
public static final int CAPTION
Code identifying a "CAPTION" tag- See Also:
- Constant Field Values
-
CENTER
public static final int CENTER
Code identifying a "CENTER" tag- See Also:
- Constant Field Values
-
CITE
public static final int CITE
Code identifying a "CITE" tag- See Also:
- Constant Field Values
-
CODE
public static final int CODE
Code identifying a "CODE" tag- See Also:
- Constant Field Values
-
COL
public static final int COL
Code identifying a "COL" tag- See Also:
- Constant Field Values
-
COLGROUP
public static final int COLGROUP
Code identifying a "COLGROUP" tag- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
Code identifying a "COMMENT" tag- See Also:
- Constant Field Values
-
DD
public static final int DD
Code identifying a "DD" tag- See Also:
- Constant Field Values
-
DEL
public static final int DEL
Code identifying a "DEL" tag- See Also:
- Constant Field Values
-
DFN
public static final int DFN
Code identifying a "DFN" tag- See Also:
- Constant Field Values
-
DIR
public static final int DIR
Code identifying a "DIR" tag- See Also:
- Constant Field Values
-
DIV
public static final int DIV
Code identifying a "DIV" tag- See Also:
- Constant Field Values
-
DL
public static final int DL
Code identifying a "DL" tag- See Also:
- Constant Field Values
-
DT
public static final int DT
Code identifying a "DT" tag- See Also:
- Constant Field Values
-
EM
public static final int EM
Code identifying a "EM" tag- See Also:
- Constant Field Values
-
EMBED
public static final int EMBED
Code identifying a "EMBED" tag- See Also:
- Constant Field Values
-
FIELDSET
public static final int FIELDSET
Code identifying a "FIELDSET" tag- See Also:
- Constant Field Values
-
FONT
public static final int FONT
Code identifying a "FONT" tag- See Also:
- Constant Field Values
-
FORM
public static final int FORM
Code identifying a "FORM" tag- See Also:
- Constant Field Values
-
FRAME
public static final int FRAME
Code identifying a "FRAME" tag- See Also:
- Constant Field Values
-
FRAMESET
public static final int FRAMESET
Code identifying a "FRAMESET" tag- See Also:
- Constant Field Values
-
H1
public static final int H1
Code identifying a "H1" tag- See Also:
- Constant Field Values
-
H2
public static final int H2
Code identifying a "H2" tag- See Also:
- Constant Field Values
-
H3
public static final int H3
Code identifying a "H3" tag- See Also:
- Constant Field Values
-
H4
public static final int H4
Code identifying a "H4" tag- See Also:
- Constant Field Values
-
H5
public static final int H5
Code identifying a "H5" tag- See Also:
- Constant Field Values
-
H6
public static final int H6
Code identifying a "H6" tag- See Also:
- Constant Field Values
-
HEAD
public static final int HEAD
Code identifying a "HEAD" tag- See Also:
- Constant Field Values
-
HR
public static final int HR
Code identifying a "HR" tag- See Also:
- Constant Field Values
-
HTML
public static final int HTML
Code identifying a "HTML" tag- See Also:
- Constant Field Values
-
I
public static final int I
Code identifying a "I" tag- See Also:
- Constant Field Values
-
IFRAME
public static final int IFRAME
Code identifying a "IFRAME" tag- See Also:
- Constant Field Values
-
IMG
public static final int IMG
Code identifying a "IMG" tag- See Also:
- Constant Field Values
-
INPUT
public static final int INPUT
Code identifying a "INPUT" tag- See Also:
- Constant Field Values
-
INS
public static final int INS
Code identifying a "INS" tag- See Also:
- Constant Field Values
-
ISINDEX
public static final int ISINDEX
Code identifying a "ISINDEX" tag- See Also:
- Constant Field Values
-
KBD
public static final int KBD
Code identifying a "KBD" tag- See Also:
- Constant Field Values
-
LABEL
public static final int LABEL
Code identifying a "LABEL" tag- See Also:
- Constant Field Values
-
LEGEND
public static final int LEGEND
Code identifying a "LEGEND" tag- See Also:
- Constant Field Values
-
LI
public static final int LI
Code identifying a "LI" tag- See Also:
- Constant Field Values
-
LINK
public static final int LINK
Code identifying a "LINK" tag- See Also:
- Constant Field Values
-
MAP
public static final int MAP
Code identifying a "MAP" tag- See Also:
- Constant Field Values
-
MENU
public static final int MENU
Code identifying a "MENU" tag- See Also:
- Constant Field Values
-
META
public static final int META
Code identifying a "META" tag- See Also:
- Constant Field Values
-
NOFRAMES
public static final int NOFRAMES
Code identifying a "NOFRAMES" tag- See Also:
- Constant Field Values
-
NOSCRIPT
public static final int NOSCRIPT
Code identifying a "NOSCRIPT" tag- See Also:
- Constant Field Values
-
OBJECT
public static final int OBJECT
Code identifying a "OBJECT" tag- See Also:
- Constant Field Values
-
OL
public static final int OL
Code identifying a "OL" tag- See Also:
- Constant Field Values
-
OPTGROUP
public static final int OPTGROUP
Code identifying a "OPTGROUP" tag- See Also:
- Constant Field Values
-
OPTION
public static final int OPTION
Code identifying a "OPTION" tag- See Also:
- Constant Field Values
-
P
public static final int P
Code identifying a "P" tag- See Also:
- Constant Field Values
-
PARAM
public static final int PARAM
Code identifying a "PARAM" tag- See Also:
- Constant Field Values
-
PLAINTEXT
public static final int PLAINTEXT
Code identifying a "PLAINTEXT" tag- See Also:
- Constant Field Values
-
PRE
public static final int PRE
Code identifying a "PRE" tag- See Also:
- Constant Field Values
-
Q
public static final int Q
Code identifying a "Q" tag- See Also:
- Constant Field Values
-
S
public static final int S
Code identifying a "S" tag- See Also:
- Constant Field Values
-
SAMP
public static final int SAMP
Code identifying a "SAMP" tag- See Also:
- Constant Field Values
-
SCRIPT
public static final int SCRIPT
Code identifying a "SCRIPT" tag- See Also:
- Constant Field Values
-
SELECT
public static final int SELECT
Code identifying a "SELECT" tag- See Also:
- Constant Field Values
-
SMALL
public static final int SMALL
Code identifying a "SMALL" tag- See Also:
- Constant Field Values
-
SPAN
public static final int SPAN
Code identifying a "SPAN" tag- See Also:
- Constant Field Values
-
STRIKE
public static final int STRIKE
Code identifying a "STRIKE" tag- See Also:
- Constant Field Values
-
STRONG
public static final int STRONG
Code identifying a "STRONG" tag- See Also:
- Constant Field Values
-
STYLE
public static final int STYLE
Code identifying a "STYLE" tag- See Also:
- Constant Field Values
-
SUB
public static final int SUB
Code identifying a "SUB" tag- See Also:
- Constant Field Values
-
SUP
public static final int SUP
Code identifying a "SUP" tag- See Also:
- Constant Field Values
-
TABLE
public static final int TABLE
Code identifying a "TABLE" tag- See Also:
- Constant Field Values
-
TBODY
public static final int TBODY
Code identifying a "TBODY" tag- See Also:
- Constant Field Values
-
TD
public static final int TD
Code identifying a "TD" tag- See Also:
- Constant Field Values
-
TEXTAREA
public static final int TEXTAREA
Code identifying a "TEXTAREA" tag- See Also:
- Constant Field Values
-
TFOOT
public static final int TFOOT
Code identifying a "TFOOT" tag- See Also:
- Constant Field Values
-
TH
public static final int TH
Code identifying a "TH" tag- See Also:
- Constant Field Values
-
THEAD
public static final int THEAD
Code identifying a "THEAD" tag- See Also:
- Constant Field Values
-
TITLE
public static final int TITLE
Code identifying a "TITLE" tag- See Also:
- Constant Field Values
-
TR
public static final int TR
Code identifying a "TR" tag- See Also:
- Constant Field Values
-
TT
public static final int TT
Code identifying a "TT" tag- See Also:
- Constant Field Values
-
U
public static final int U
Code identifying a "U" tag- See Also:
- Constant Field Values
-
UL
public static final int UL
Code identifying a "UL" tag- See Also:
- Constant Field Values
-
VAR
public static final int VAR
Code identifying a "VAR" tag- See Also:
- Constant Field Values
-
WBR
public static final int WBR
Code identifying a "WBR" tag- See Also:
- Constant Field Values
-
XMP
public static final int XMP
Code identifying a "XMP" tag- See Also:
- Constant Field Values
-
-
Method Detail
-
hashCode
public static int hashCode(byte[] b, int offset, int count)Returns the hash code of the given string, automatically converting the chars to upper case.- Parameters:
b-offset-count-- Returns:
- The hash code.
-
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
-
-