Package org.unbescape.html
Class HtmlEscapeSymbols
- java.lang.Object
-
- org.unbescape.html.HtmlEscapeSymbols
-
final class HtmlEscapeSymbols extends java.lang.Object
Instances of this class group all the complex data structures needed to support full escape and unescape operations for HTML.
Most of the fields in objects of this class are package-accessible, as the class itself is, in order to allow them (the fields) to be directly accessed from the classes doing the real escape/unescape (basically, the
HtmlEscapeUtil
class.- Since:
- 1.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
HtmlEscapeSymbols.Reference
(package private) static class
HtmlEscapeSymbols.References
-
Field Summary
Fields Modifier and Type Field Description (package private) int[][]
DOUBLE_CODEPOINTS
(package private) byte[]
ESCAPE_LEVELS
(package private) static HtmlEscapeSymbols
HTML4_SYMBOLS
(package private) static HtmlEscapeSymbols
HTML5_SYMBOLS
(package private) static char
MAX_ASCII_CHAR
(package private) short[]
NCRS_BY_CODEPOINT
(package private) static int
NCRS_BY_CODEPOINT_LEN
(package private) java.util.Map<java.lang.Integer,java.lang.Short>
NCRS_BY_CODEPOINT_OVERFLOW
(package private) static short
NO_NCR
(package private) int[]
SORTED_CODEPOINTS
(package private) char[][]
SORTED_NCRS
-
Constructor Summary
Constructors Constructor Description HtmlEscapeSymbols(HtmlEscapeSymbols.References references, byte[] escapeLevels)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static int
binarySearch(char[][] values, char[] text, int start, int end)
(package private) static int
binarySearch(char[][] values, java.lang.String text, int start, int end)
private static int
compare(char[] ncr, char[] text, int start, int end)
private static int
compare(char[] ncr, java.lang.String text, int start, int end)
private static int
positionInList(java.util.List<char[]> list, char[] element)
-
-
-
Field Detail
-
NCRS_BY_CODEPOINT_LEN
static final int NCRS_BY_CODEPOINT_LEN
- See Also:
- Constant Field Values
-
NCRS_BY_CODEPOINT
final short[] NCRS_BY_CODEPOINT
-
NCRS_BY_CODEPOINT_OVERFLOW
final java.util.Map<java.lang.Integer,java.lang.Short> NCRS_BY_CODEPOINT_OVERFLOW
-
MAX_ASCII_CHAR
static final char MAX_ASCII_CHAR
- See Also:
- Constant Field Values
-
ESCAPE_LEVELS
final byte[] ESCAPE_LEVELS
-
SORTED_NCRS
final char[][] SORTED_NCRS
-
SORTED_CODEPOINTS
final int[] SORTED_CODEPOINTS
-
DOUBLE_CODEPOINTS
final int[][] DOUBLE_CODEPOINTS
-
NO_NCR
static final short NO_NCR
- See Also:
- Constant Field Values
-
HTML4_SYMBOLS
static final HtmlEscapeSymbols HTML4_SYMBOLS
-
HTML5_SYMBOLS
static final HtmlEscapeSymbols HTML5_SYMBOLS
-
-
Constructor Detail
-
HtmlEscapeSymbols
HtmlEscapeSymbols(HtmlEscapeSymbols.References references, byte[] escapeLevels)
-
-
Method Detail
-
positionInList
private static int positionInList(java.util.List<char[]> list, char[] element)
-
compare
private static int compare(char[] ncr, java.lang.String text, int start, int end)
-
compare
private static int compare(char[] ncr, char[] text, int start, int end)
-
binarySearch
static int binarySearch(char[][] values, java.lang.String text, int start, int end)
-
binarySearch
static int binarySearch(char[][] values, char[] text, int start, int end)
-
-