Package org.htmlunit.cyberneko
Class HTMLUnicodeEntitiesParser
- java.lang.Object
-
- org.htmlunit.cyberneko.HTMLUnicodeEntitiesParser
-
public class HTMLUnicodeEntitiesParser extends Object
Parser for the Pre-defined named HTML entities. 12.2.5.72 Character reference stateFrom the spec:
Consume the maximum number of characters possible, with the consumed characters matching one of the identifiers in the first column of the named character references table (in a case-sensitive manner). Append each character to the temporary buffer when it's consumed.- Author:
- Ronald Brill
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATE_START
-
Constructor Summary
Constructors Constructor Description HTMLUnicodeEntitiesParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMatch()intgetRewindCount()booleanparseNumeric(int current)Parses a numeric entity such as #x64; or #42; The ampersand must not be presented.voidsetMatchFromCode()
-
-
-
Field Detail
-
STATE_START
public static final int STATE_START
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMatch
public String getMatch()
-
getRewindCount
public int getRewindCount()
-
setMatchFromCode
public void setMatchFromCode()
-
parseNumeric
public boolean parseNumeric(int current)
Parses a numeric entity such as #x64; or #42; The ampersand must not be presented.- Parameters:
current- the next character to check- Returns:
- if we have reached the end of the parsing
-
-