Package org.htmlunit.cyberneko
Class HTMLUnicodeEntitiesParser
java.lang.Object
org.htmlunit.cyberneko.HTMLUnicodeEntitiesParser
Parser for the Pre-defined named HTML entities.
12.2.5.72 Character reference state
From 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMatch()intbooleanparseNumeric(int current) Parses a numeric entity such as #x64; or #42; The ampersand must not be presented.void
-
Field Details
-
STATE_START
public static final int STATE_START- See Also:
-
-
Constructor Details
-
HTMLUnicodeEntitiesParser
public HTMLUnicodeEntitiesParser()
-
-
Method Details
-
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
-