|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.id.jericho.lib.html.Segment
au.id.jericho.lib.html.CharacterReference
au.id.jericho.lib.html.CharacterEntityReference
Represents an HTML Character Entity Reference.
Click here to scroll down to the method summary.
The full list of HTML character entity references can be found at the following URL:
http://www.w3.org/TR/REC-html40/sgml/entities.html.
Static methods to encode and decode strings
and single characters can be found in the CharacterReference
superclass.
The '
entity reference is however not defined for use in HTML.
It is defined in the XHTML Special Characters Entity Set,
and is the only one that is not included in both.
For this reason, the '
entity reference is recognised by this library in decoding functions, but in encoding functions
the numeric character reference '
is used instead.
Most modern browsers support it in both XHTML and HTML, with the notable exception
of Microsoft Internet Explorer 6.0, which doesn't support it in either.
CharacterEntityReference
objects are created using one of the following methods:
CharacterReference.parse(CharSequence characterReferenceText)
Source.findNextCharacterReference(int pos)
Source.findPreviousCharacterReference(int pos)
Segment.findAllCharacterReferences()
CharacterReference
Field Summary | |
static char |
_aacute
á á = á -- latin small letter a with acute, U+00E1 ISOlat1. |
static char |
_Aacute
Á Á = Á -- latin capital letter A with acute, U+00C1 ISOlat1. |
static char |
_acirc
â â = â -- latin small letter a with circumflex, U+00E2 ISOlat1. |
static char |
_Acirc
  =  -- latin capital letter A with circumflex, U+00C2 ISOlat1. |
static char |
_acute
´ ´ = ´ -- acute accent = spacing acute, U+00B4 ISOdia. |
static char |
_aelig
æ æ = æ -- latin small letter ae = latin small ligature ae, U+00E6 ISOlat1. |
static char |
_AElig
Æ Æ = Æ -- latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1. |
static char |
_agrave
à à = à -- latin small letter a with grave = latin small letter a grave, U+00E0 ISOlat1. |
static char |
_Agrave
À À = À -- latin capital letter A with grave = latin capital letter A grave, U+00C0 ISOlat1. |
static char |
_alefsym
ℵ ℵ = ℵ -- alef symbol = first transfinite cardinal, U+2135 NEW (see comments). |
static char |
_alpha
α α = α -- greek small letter alpha, U+03B1 ISOgrk3. |
static char |
_Alpha
Α Α = Α -- greek capital letter alpha, U+0391. |
static char |
_amp
& & = & -- ampersand, U+0026 ISOnum. |
static char |
_and
∧ ∧ = ∧ -- logical and = wedge, U+2227 ISOtech. |
static char |
_ang
∠ ∠ = ∠ -- angle, U+2220 ISOamso. |
static char |
_apos
' ' = ' -- apostrophe = APL quote, U+0027 ISOnum (see comments). |
static char |
_aring
å å = å -- latin small letter a with ring above = latin small letter a ring, U+00E5 ISOlat1. |
static char |
_Aring
Å Å = Å -- latin capital letter A with ring above = latin capital letter A ring, U+00C5 ISOlat1. |
static char |
_asymp
≈ ≈ = ≈ -- almost equal to = asymptotic to, U+2248 ISOamsr. |
static char |
_atilde
ã ã = ã -- latin small letter a with tilde, U+00E3 ISOlat1. |
static char |
_Atilde
à à = à -- latin capital letter A with tilde, U+00C3 ISOlat1. |
static char |
_auml
ä ä = ä -- latin small letter a with diaeresis, U+00E4 ISOlat1. |
static char |
_Auml
Ä Ä = Ä -- latin capital letter A with diaeresis, U+00C4 ISOlat1. |
static char |
_bdquo
„ „ = „ -- double low-9 quotation mark, U+201E NEW. |
static char |
_beta
β β = β -- greek small letter beta, U+03B2 ISOgrk3. |
static char |
_Beta
Β Β = Β -- greek capital letter beta, U+0392. |
static char |
_brvbar
¦ ¦ = ¦ -- broken bar = broken vertical bar, U+00A6 ISOnum. |
static char |
_bull
• • = • -- bullet = black small circle, U+2022 ISOpub (see comments). |
static char |
_cap
∩ ∩ = ∩ -- intersection = cap, U+2229 ISOtech. |
static char |
_ccedil
ç ç = ç -- latin small letter c with cedilla, U+00E7 ISOlat1. |
static char |
_Ccedil
Ç Ç = Ç -- latin capital letter C with cedilla, U+00C7 ISOlat1. |
static char |
_cedil
¸ ¸ = ¸ -- cedilla = spacing cedilla, U+00B8 ISOdia. |
static char |
_cent
¢ ¢ = ¢ -- cent sign, U+00A2 ISOnum. |
static char |
_chi
χ χ = χ -- greek small letter chi, U+03C7 ISOgrk3. |
static char |
_Chi
Χ Χ = Χ -- greek capital letter chi, U+03A7. |
static char |
_circ
ˆ ˆ = ˆ -- modifier letter circumflex accent, U+02C6 ISOpub. |
static char |
_clubs
♣ ♣ = ♣ -- black club suit = shamrock, U+2663 ISOpub. |
static char |
_cong
≅ ≅ = ≅ -- approximately equal to, U+2245 ISOtech. |
static char |
_copy
© © = © -- copyright sign, U+00A9 ISOnum. |
static char |
_crarr
↵ ↵ = ↵ -- downwards arrow with corner leftwards = carriage return, U+21B5 NEW. |
static char |
_cup
∪ ∪ = ∪ -- union = cup, U+222A ISOtech. |
static char |
_curren
¤ ¤ = ¤ -- currency sign, U+00A4 ISOnum. |
static char |
_dagger
† † = † -- dagger, U+2020 ISOpub. |
static char |
_Dagger
‡ ‡ = ‡ -- double dagger, U+2021 ISOpub. |
static char |
_darr
↓ ↓ = ↓ -- downwards arrow, U+2193 ISOnum. |
static char |
_dArr
⇓ ⇓ = ⇓ -- downwards double arrow, U+21D3 ISOamsa. |
static char |
_deg
° ° = ° -- degree sign, U+00B0 ISOnum. |
static char |
_delta
δ δ = δ -- greek small letter delta, U+03B4 ISOgrk3. |
static char |
_Delta
Δ Δ = Δ -- greek capital letter delta, U+0394 ISOgrk3. |
static char |
_diams
♦ ♦ = ♦ -- black diamond suit, U+2666 ISOpub. |
static char |
_divide
÷ ÷ = ÷ -- division sign, U+00F7 ISOnum. |
static char |
_eacute
é é = é -- latin small letter e with acute, U+00E9 ISOlat1. |
static char |
_Eacute
É É = É -- latin capital letter E with acute, U+00C9 ISOlat1. |
static char |
_ecirc
ê ê = ê -- latin small letter e with circumflex, U+00EA ISOlat1. |
static char |
_Ecirc
Ê Ê = Ê -- latin capital letter E with circumflex, U+00CA ISOlat1. |
static char |
_egrave
è è = è -- latin small letter e with grave, U+00E8 ISOlat1. |
static char |
_Egrave
È È = È -- latin capital letter E with grave, U+00C8 ISOlat1. |
static char |
_empty
∅ ∅ = ∅ -- empty set = null set = diameter, U+2205 ISOamso. |
static char |
_emsp
  =   -- em space, U+2003 ISOpub. |
static char |
_ensp
  =   -- en space, U+2002 ISOpub. |
static char |
_epsilon
ε ε = ε -- greek small letter epsilon, U+03B5 ISOgrk3. |
static char |
_Epsilon
Ε Ε = Ε -- greek capital letter epsilon, U+0395. |
static char |
_equiv
≡ ≡ = ≡ -- identical to, U+2261 ISOtech. |
static char |
_eta
η η = η -- greek small letter eta, U+03B7 ISOgrk3. |
static char |
_Eta
Η Η = Η -- greek capital letter eta, U+0397. |
static char |
_eth
ð ð = ð -- latin small letter eth, U+00F0 ISOlat1. |
static char |
_ETH
Ð Ð = Ð -- latin capital letter ETH, U+00D0 ISOlat1. |
static char |
_euml
ë ë = ë -- latin small letter e with diaeresis, U+00EB ISOlat1. |
static char |
_Euml
Ë Ë = Ë -- latin capital letter E with diaeresis, U+00CB ISOlat1. |
static char |
_euro
€ € = € -- euro sign, U+20AC NEW. |
static char |
_exist
∃ ∃ = ∃ -- there exists, U+2203 ISOtech. |
static char |
_fnof
ƒ ƒ = ƒ -- latin small letter f with hook = function = florin, U+0192 ISOtech. |
static char |
_forall
∀ ∀ = ∀ -- for all, U+2200 ISOtech. |
static char |
_frac12
½ ½ = ½ -- vulgar fraction one half = fraction one half, U+00BD ISOnum. |
static char |
_frac14
¼ ¼ = ¼ -- vulgar fraction one quarter = fraction one quarter, U+00BC ISOnum. |
static char |
_frac34
¾ ¾ = ¾ -- vulgar fraction three quarters = fraction three quarters, U+00BE ISOnum. |
static char |
_frasl
⁄ ⁄ = ⁄ -- fraction slash, U+2044 NEW. |
static char |
_gamma
γ γ = γ -- greek small letter gamma, U+03B3 ISOgrk3. |
static char |
_Gamma
Γ Γ = Γ -- greek capital letter gamma, U+0393 ISOgrk3. |
static char |
_ge
≥ ≥ = ≥ -- greater-than or equal to, U+2265 ISOtech. |
static char |
_gt
> > = > -- greater-than sign, U+003E ISOnum. |
static char |
_harr
↔ ↔ = ↔ -- left right arrow, U+2194 ISOamsa. |
static char |
_hArr
⇔ ⇔ = ⇔ -- left right double arrow, U+21D4 ISOamsa. |
static char |
_hearts
♥ ♥ = ♥ -- black heart suit = valentine, U+2665 ISOpub. |
static char |
_hellip
… … = … -- horizontal ellipsis = three dot leader, U+2026 ISOpub. |
static char |
_iacute
í í = í -- latin small letter i with acute, U+00ED ISOlat1. |
static char |
_Iacute
Í Í = Í -- latin capital letter I with acute, U+00CD ISOlat1. |
static char |
_icirc
î î = î -- latin small letter i with circumflex, U+00EE ISOlat1. |
static char |
_Icirc
Î Î = Î -- latin capital letter I with circumflex, U+00CE ISOlat1. |
static char |
_iexcl
¡ ¡ = ¡ -- inverted exclamation mark, U+00A1 ISOnum. |
static char |
_igrave
ì ì = ì -- latin small letter i with grave, U+00EC ISOlat1. |
static char |
_Igrave
Ì Ì = Ì -- latin capital letter I with grave, U+00CC ISOlat1. |
static char |
_image
ℑ ℑ = ℑ -- black-letter capital I = imaginary part, U+2111 ISOamso. |
static char |
_infin
∞ ∞ = ∞ -- infinity, U+221E ISOtech. |
static char |
_int
∫ ∫ = ∫ -- integral, U+222B ISOtech. |
static char |
_iota
ι ι = ι -- greek small letter iota, U+03B9 ISOgrk3. |
static char |
_Iota
Ι Ι = Ι -- greek capital letter iota, U+0399. |
static char |
_iquest
¿ ¿ = ¿ -- inverted question mark = turned question mark, U+00BF ISOnum. |
static char |
_isin
∈ ∈ = ∈ -- element of, U+2208 ISOtech. |
static char |
_iuml
ï ï = ï -- latin small letter i with diaeresis, U+00EF ISOlat1. |
static char |
_Iuml
Ï Ï = Ï -- latin capital letter I with diaeresis, U+00CF ISOlat1. |
static char |
_kappa
κ κ = κ -- greek small letter kappa, U+03BA ISOgrk3. |
static char |
_Kappa
Κ Κ = Κ -- greek capital letter kappa, U+039A. |
static char |
_lambda
λ λ = λ -- greek small letter lambda, U+03BB ISOgrk3. |
static char |
_Lambda
Λ Λ = Λ -- greek capital letter lambda, U+039B ISOgrk3. |
static char |
_lang
〈 ⟨ = 〈 -- left-pointing angle bracket = bra, U+2329 ISOtech (see comments). |
static char |
_laquo
« « = « -- left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum. |
static char |
_larr
← ← = ← -- leftwards arrow, U+2190 ISOnum. |
static char |
_lArr
⇐ ⇐ = ⇐ -- leftwards double arrow, U+21D0 ISOtech (see comments). |
static char |
_lceil
⌈ ⌈ = ⌈ -- left ceiling = APL upstile, U+2308 ISOamsc. |
static char |
_ldquo
“ “ = “ -- left double quotation mark, U+201C ISOnum. |
static char |
_le
≤ ≤ = ≤ -- less-than or equal to, U+2264 ISOtech. |
static char |
_lfloor
⌊ ⌊ = ⌊ -- left floor = APL downstile, U+230A ISOamsc. |
static char |
_lowast
∗ ∗ = ∗ -- asterisk operator, U+2217 ISOtech. |
static char |
_loz
◊ ◊ = ◊ -- lozenge, U+25CA ISOpub. |
static char |
_lrm
‎ = ‎ -- left-to-right mark, U+200E NEW RFC 2070. |
static char |
_lsaquo
‹ ‹ = ‹ -- single left-pointing angle quotation mark, U+2039 ISO proposed (see comments). |
static char |
_lsquo
‘ ‘ = ‘ -- left single quotation mark, U+2018 ISOnum. |
static char |
_lt
< < = < -- less-than sign, U+003C ISOnum. |
static char |
_macr
¯ ¯ = ¯ -- macron = spacing macron = overline = APL overbar, U+00AF ISOdia. |
static char |
_mdash
— — = — -- em dash, U+2014 ISOpub. |
static char |
_micro
µ µ = µ -- micro sign, U+00B5 ISOnum. |
static char |
_middot
· · = · -- middle dot = Georgian comma = Greek middle dot, U+00B7 ISOnum. |
static char |
_minus
− − = − -- minus sign, U+2212 ISOtech. |
static char |
_mu
μ μ = μ -- greek small letter mu, U+03BC ISOgrk3. |
static char |
_Mu
Μ Μ = Μ -- greek capital letter mu, U+039C. |
static char |
_nabla
∇ ∇ = ∇ -- nabla = backward difference, U+2207 ISOtech. |
static char |
_nbsp
=   -- no-break space = non-breaking space, U+00A0 ISOnum. |
static char |
_ndash
– – = – -- en dash, U+2013 ISOpub. |
static char |
_ne
≠ ≠ = ≠ -- not equal to, U+2260 ISOtech. |
static char |
_ni
∋ ∋ = ∋ -- contains as member, U+220B ISOtech (see comments). |
static char |
_not
¬ ¬ = ¬ -- not sign = angled dash, U+00AC ISOnum. |
static char |
_notin
∉ ∉ = ∉ -- not an element of, U+2209 ISOtech. |
static char |
_nsub
⊄ ⊄ = ⊄ -- not a subset of, U+2284 ISOamsn. |
static char |
_ntilde
ñ ñ = ñ -- latin small letter n with tilde, U+00F1 ISOlat1. |
static char |
_Ntilde
Ñ Ñ = Ñ -- latin capital letter N with tilde, U+00D1 ISOlat1. |
static char |
_nu
ν ν = ν -- greek small letter nu, U+03BD ISOgrk3. |
static char |
_Nu
Ν Ν = Ν -- greek capital letter nu, U+039D. |
static char |
_oacute
ó ó = ó -- latin small letter o with acute, U+00F3 ISOlat1. |
static char |
_Oacute
Ó Ó = Ó -- latin capital letter O with acute, U+00D3 ISOlat1. |
static char |
_ocirc
ô ô = ô -- latin small letter o with circumflex, U+00F4 ISOlat1. |
static char |
_Ocirc
Ô Ô = Ô -- latin capital letter O with circumflex, U+00D4 ISOlat1. |
static char |
_oelig
œ œ = œ -- latin small ligature oe, U+0153 ISOlat2 (see comments). |
static char |
_OElig
Œ Œ = Œ -- latin capital ligature OE, U+0152 ISOlat2. |
static char |
_ograve
ò ò = ò -- latin small letter o with grave, U+00F2 ISOlat1. |
static char |
_Ograve
Ò Ò = Ò -- latin capital letter O with grave, U+00D2 ISOlat1. |
static char |
_oline
‾ ‾ = ‾ -- overline = spacing overscore, U+203E NEW. |
static char |
_omega
ω ω = ω -- greek small letter omega, U+03C9 ISOgrk3. |
static char |
_Omega
Ω Ω = Ω -- greek capital letter omega, U+03A9 ISOgrk3. |
static char |
_omicron
ο ο = ο -- greek small letter omicron, U+03BF NEW. |
static char |
_Omicron
Ο Ο = Ο -- greek capital letter omicron, U+039F. |
static char |
_oplus
⊕ ⊕ = ⊕ -- circled plus = direct sum, U+2295 ISOamsb. |
static char |
_or
∨ ∨ = ∨ -- logical or = vee, U+2228 ISOtech. |
static char |
_ordf
ª ª = ª -- feminine ordinal indicator, U+00AA ISOnum. |
static char |
_ordm
º º = º -- masculine ordinal indicator, U+00BA ISOnum. |
static char |
_oslash
ø ø = ø -- latin small letter o with stroke, = latin small letter o slash, U+00F8 ISOlat1. |
static char |
_Oslash
Ø Ø = Ø -- latin capital letter O with stroke = latin capital letter O slash, U+00D8 ISOlat1. |
static char |
_otilde
õ õ = õ -- latin small letter o with tilde, U+00F5 ISOlat1. |
static char |
_Otilde
Õ Õ = Õ -- latin capital letter O with tilde, U+00D5 ISOlat1. |
static char |
_otimes
⊗ ⊗ = ⊗ -- circled times = vector product, U+2297 ISOamsb. |
static char |
_ouml
ö ö = ö -- latin small letter o with diaeresis, U+00F6 ISOlat1. |
static char |
_Ouml
Ö Ö = Ö -- latin capital letter O with diaeresis, U+00D6 ISOlat1. |
static char |
_para
¶ ¶ = ¶ -- pilcrow sign = paragraph sign, U+00B6 ISOnum. |
static char |
_part
∂ ∂ = ∂ -- partial differential, U+2202 ISOtech. |
static char |
_permil
‰ ‰ = ‰ -- per mille sign, U+2030 ISOtech. |
static char |
_perp
⊥ ⊥ = ⊥ -- up tack = orthogonal to = perpendicular, U+22A5 ISOtech. |
static char |
_phi
φ φ = φ -- greek small letter phi, U+03C6 ISOgrk3. |
static char |
_Phi
Φ Φ = Φ -- greek capital letter phi, U+03A6 ISOgrk3. |
static char |
_pi
π π = π -- greek small letter pi, U+03C0 ISOgrk3. |
static char |
_Pi
Π Π = Π -- greek capital letter pi, U+03A0 ISOgrk3. |
static char |
_piv
ϖ ϖ = ϖ -- greek pi symbol, U+03D6 ISOgrk3. |
static char |
_plusmn
± ± = ± -- plus-minus sign = plus-or-minus sign, U+00B1 ISOnum. |
static char |
_pound
£ £ = £ -- pound sign, U+00A3 ISOnum. |
static char |
_prime
′ ′ = ′ -- prime = minutes = feet, U+2032 ISOtech. |
static char |
_Prime
″ ″ = ″ -- double prime = seconds = inches, U+2033 ISOtech. |
static char |
_prod
∏ ∏ = ∏ -- n-ary product = product sign, U+220F ISOamsb (see comments). |
static char |
_prop
∝ ∝ = ∝ -- proportional to, U+221D ISOtech. |
static char |
_psi
ψ ψ = ψ -- greek small letter psi, U+03C8 ISOgrk3. |
static char |
_Psi
Ψ Ψ = Ψ -- greek capital letter psi, U+03A8 ISOgrk3. |
static char |
_quot
" " = " -- quotation mark = APL quote, U+0022 ISOnum. |
static char |
_radic
√ √ = √ -- square root = radical sign, U+221A ISOtech. |
static char |
_rang
〉 ⟩ = 〉 -- right-pointing angle bracket = ket, U+232A ISOtech (see comments). |
static char |
_raquo
» » = » -- right-pointing double angle quotation mark = right pointing guillemet, U+00BB ISOnum. |
static char |
_rarr
→ → = → -- rightwards arrow, U+2192 ISOnum. |
static char |
_rArr
⇒ ⇒ = ⇒ -- rightwards double arrow, U+21D2 ISOtech (see comments). |
static char |
_rceil
⌉ ⌉ = ⌉ -- right ceiling, U+2309 ISOamsc. |
static char |
_rdquo
” ” = ” -- right double quotation mark, U+201D ISOnum. |
static char |
_real
ℜ ℜ = ℜ -- black-letter capital R = real part symbol, U+211C ISOamso. |
static char |
_reg
® ® = ® -- registered sign = registered trade mark sign, U+00AE ISOnum. |
static char |
_rfloor
⌋ ⌋ = ⌋ -- right floor, U+230B ISOamsc. |
static char |
_rho
ρ ρ = ρ -- greek small letter rho, U+03C1 ISOgrk3. |
static char |
_Rho
Ρ Ρ = Ρ -- greek capital letter rho, U+03A1. |
static char |
_rlm
‏ = ‏ -- right-to-left mark, U+200F NEW RFC 2070. |
static char |
_rsaquo
› › = › -- single right-pointing angle quotation mark, U+203A ISO proposed (see comments). |
static char |
_rsquo
’ ’ = ’ -- right single quotation mark, U+2019 ISOnum. |
static char |
_sbquo
‚ ‚ = ‚ -- single low-9 quotation mark, U+201A NEW. |
static char |
_scaron
š š = š -- latin small letter s with caron, U+0161 ISOlat2. |
static char |
_Scaron
Š Š = Š -- latin capital letter S with caron, U+0160 ISOlat2. |
static char |
_sdot
⋅ ⋅ = ⋅ -- dot operator, U+22C5 ISOamsb (see comments). |
static char |
_sect
§ § = § -- section sign, U+00A7 ISOnum. |
static char |
_shy
­ = ­ -- soft hyphen = discretionary hyphen, U+00AD ISOnum. |
static char |
_sigma
σ σ = σ -- greek small letter sigma, U+03C3 ISOgrk3. |
static char |
_Sigma
Σ Σ = Σ -- greek capital letter sigma, U+03A3 ISOgrk3. |
static char |
_sigmaf
ς ς = ς -- greek small letter final sigma, U+03C2 ISOgrk3. |
static char |
_sim
∼ ∼ = ∼ -- tilde operator = varies with = similar to, U+223C ISOtech (see comments). |
static char |
_spades
♠ ♠ = ♠ -- black spade suit, U+2660 ISOpub (see comments). |
static char |
_sub
⊂ ⊂ = ⊂ -- subset of, U+2282 ISOtech. |
static char |
_sube
⊆ ⊆ = ⊆ -- subset of or equal to, U+2286 ISOtech. |
static char |
_sum
∑ ∑ = ∑ -- n-ary summation, U+2211 ISOamsb (see comments). |
static char |
_sup
⊃ ⊃ = ⊃ -- superset of, U+2283 ISOtech (see comments). |
static char |
_sup1
¹ ¹ = ¹ -- superscript one = superscript digit one, U+00B9 ISOnum. |
static char |
_sup2
² ² = ² -- superscript two = superscript digit two = squared, U+00B2 ISOnum. |
static char |
_sup3
³ ³ = ³ -- superscript three = superscript digit three = cubed, U+00B3 ISOnum. |
static char |
_supe
⊇ ⊇ = ⊇ -- superset of or equal to, U+2287 ISOtech. |
static char |
_szlig
ß ß = ß -- latin small letter sharp s = ess-zed, U+00DF ISOlat1. |
static char |
_tau
τ τ = τ -- greek small letter tau, U+03C4 ISOgrk3. |
static char |
_Tau
Τ Τ = Τ -- greek capital letter tau, U+03A4. |
static char |
_there4
∴ ∴ = ∴ -- therefore, U+2234 ISOtech. |
static char |
_theta
θ θ = θ -- greek small letter theta, U+03B8 ISOgrk3. |
static char |
_Theta
Θ Θ = Θ -- greek capital letter theta, U+0398 ISOgrk3. |
static char |
_thetasym
ϑ ϑ = ϑ -- greek small letter theta symbol, U+03D1 NEW. |
static char |
_thinsp
  =   -- thin space, U+2009 ISOpub. |
static char |
_thorn
þ þ = þ -- latin small letter thorn, U+00FE ISOlat1. |
static char |
_THORN
Þ Þ = Þ -- latin capital letter THORN, U+00DE ISOlat1. |
static char |
_tilde
˜ ˜ = ˜ -- small tilde, U+02DC ISOdia. |
static char |
_times
× × = × -- multiplication sign, U+00D7 ISOnum. |
static char |
_trade
™ ™ = ™ -- trade mark sign, U+2122 ISOnum. |
static char |
_uacute
ú ú = ú -- latin small letter u with acute, U+00FA ISOlat1. |
static char |
_Uacute
Ú Ú = Ú -- latin capital letter U with acute, U+00DA ISOlat1. |
static char |
_uarr
↑ ↑ = ↑ -- upwards arrow, U+2191 ISOnum. |
static char |
_uArr
⇑ ⇑ = ⇑ -- upwards double arrow, U+21D1 ISOamsa. |
static char |
_ucirc
û û = û -- latin small letter u with circumflex, U+00FB ISOlat1. |
static char |
_Ucirc
Û Û = Û -- latin capital letter U with circumflex, U+00DB ISOlat1. |
static char |
_ugrave
ù ù = ù -- latin small letter u with grave, U+00F9 ISOlat1. |
static char |
_Ugrave
Ù Ù = Ù -- latin capital letter U with grave, U+00D9 ISOlat1. |
static char |
_uml
¨ ¨ = ¨ -- diaeresis = spacing diaeresis, U+00A8 ISOdia. |
static char |
_upsih
ϒ ϒ = ϒ -- greek upsilon with hook symbol, U+03D2 NEW. |
static char |
_upsilon
υ υ = υ -- greek small letter upsilon, U+03C5 ISOgrk3. |
static char |
_Upsilon
Υ Υ = Υ -- greek capital letter upsilon, U+03A5 ISOgrk3. |
static char |
_uuml
ü ü = ü -- latin small letter u with diaeresis, U+00FC ISOlat1. |
static char |
_Uuml
Ü Ü = Ü -- latin capital letter U with diaeresis, U+00DC ISOlat1. |
static char |
_weierp
℘ ℘ = ℘ -- script capital P = power set = Weierstrass p, U+2118 ISOamso. |
static char |
_xi
ξ ξ = ξ -- greek small letter xi, U+03BE ISOgrk3. |
static char |
_Xi
Ξ Ξ = Ξ -- greek capital letter xi, U+039E ISOgrk3. |
static char |
_yacute
ý ý = ý -- latin small letter y with acute, U+00FD ISOlat1. |
static char |
_Yacute
Ý Ý = Ý -- latin capital letter Y with acute, U+00DD ISOlat1. |
static char |
_yen
¥ ¥ = ¥ -- yen sign = yuan sign, U+00A5 ISOnum. |
static char |
_yuml
ÿ ÿ = ÿ -- latin small letter y with diaeresis, U+00FF ISOlat1. |
static char |
_Yuml
Ÿ Ÿ = Ÿ -- latin capital letter Y with diaeresis, U+0178 ISOlat2. |
static char |
_zeta
ζ ζ = ζ -- greek small letter zeta, U+03B6 ISOgrk3. |
static char |
_Zeta
Ζ Ζ = Ζ -- greek capital letter zeta, U+0396. |
static char |
_zwj
‍ = ‍ -- zero width joiner, U+200D NEW RFC 2070. |
static char |
_zwnj
‌ = ‌ -- zero width non-joiner, U+200C NEW RFC 2070. |
Fields inherited from class au.id.jericho.lib.html.CharacterReference |
ApostropheEncoded, INVALID_CODE_POINT |
Method Summary | |
java.lang.String |
getCharacterReferenceString()
Returns the correct encoded form of this character entity reference. |
static java.lang.String |
getCharacterReferenceString(int codePoint)
Returns the character entity reference encoded form of the specified Unicode code point. |
static int |
getCodePointFromName(java.lang.String name)
Returns the Unicode code point of the specified character entity reference name. |
java.lang.String |
getDebugInfo()
Returns a string representation of this object useful for debugging purposes. |
java.lang.String |
getName()
Returns the name of this character entity reference. |
static java.lang.String |
getName(char ch)
Returns the character entity reference name of the specified character. |
static java.lang.String |
getName(int codePoint)
Returns the character entity reference name of the specified Unicode code point. |
static java.util.Map |
getNameToCodePointMap()
Returns a Map of character entity reference names (String ) to code points (Integer ). |
Methods inherited from class au.id.jericho.lib.html.Segment |
charAt, compareTo, encloses, encloses, equals, findAllCharacterReferences, findAllComments, findAllElements, findAllElements, findAllStartTags, findAllStartTags, findAllStartTags, findFormControls, findFormFields, findWords, getBegin, getEnd, getSourceText, getSourceTextNoWhitespace, hashCode, ignoreWhenParsing, isComment, isWhiteSpace, length, parseAttributes, subSequence, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final char _nbsp
public static final char _iexcl
public static final char _cent
public static final char _pound
public static final char _curren
public static final char _yen
public static final char _brvbar
public static final char _sect
public static final char _uml
public static final char _copy
public static final char _ordf
public static final char _laquo
public static final char _not
public static final char _shy
public static final char _reg
public static final char _macr
public static final char _deg
public static final char _plusmn
public static final char _sup2
public static final char _sup3
public static final char _acute
public static final char _micro
public static final char _para
public static final char _middot
public static final char _cedil
public static final char _sup1
public static final char _ordm
public static final char _raquo
public static final char _frac14
public static final char _frac12
public static final char _frac34
public static final char _iquest
public static final char _Agrave
public static final char _Aacute
public static final char _Acirc
public static final char _Atilde
public static final char _Auml
public static final char _Aring
public static final char _AElig
public static final char _Ccedil
public static final char _Egrave
public static final char _Eacute
public static final char _Ecirc
public static final char _Euml
public static final char _Igrave
public static final char _Iacute
public static final char _Icirc
public static final char _Iuml
public static final char _ETH
public static final char _Ntilde
public static final char _Ograve
public static final char _Oacute
public static final char _Ocirc
public static final char _Otilde
public static final char _Ouml
public static final char _times
public static final char _Oslash
public static final char _Ugrave
public static final char _Uacute
public static final char _Ucirc
public static final char _Uuml
public static final char _Yacute
public static final char _THORN
public static final char _szlig
public static final char _agrave
public static final char _aacute
public static final char _acirc
public static final char _atilde
public static final char _auml
public static final char _aring
public static final char _aelig
public static final char _ccedil
public static final char _egrave
public static final char _eacute
public static final char _ecirc
public static final char _euml
public static final char _igrave
public static final char _iacute
public static final char _icirc
public static final char _iuml
public static final char _eth
public static final char _ntilde
public static final char _ograve
public static final char _oacute
public static final char _ocirc
public static final char _otilde
public static final char _ouml
public static final char _divide
public static final char _oslash
public static final char _ugrave
public static final char _uacute
public static final char _ucirc
public static final char _uuml
public static final char _yacute
public static final char _thorn
public static final char _yuml
public static final char _fnof
public static final char _Alpha
public static final char _Beta
public static final char _Gamma
public static final char _Delta
public static final char _Epsilon
public static final char _Zeta
public static final char _Eta
public static final char _Theta
public static final char _Iota
public static final char _Kappa
public static final char _Lambda
public static final char _Mu
public static final char _Nu
public static final char _Xi
public static final char _Omicron
public static final char _Pi
public static final char _Rho
public static final char _Sigma
public static final char _Tau
public static final char _Upsilon
public static final char _Phi
public static final char _Chi
public static final char _Psi
public static final char _Omega
public static final char _alpha
public static final char _beta
public static final char _gamma
public static final char _delta
public static final char _epsilon
public static final char _zeta
public static final char _eta
public static final char _theta
public static final char _iota
public static final char _kappa
public static final char _lambda
public static final char _mu
public static final char _nu
public static final char _xi
public static final char _omicron
public static final char _pi
public static final char _rho
public static final char _sigmaf
public static final char _sigma
public static final char _tau
public static final char _upsilon
public static final char _phi
public static final char _chi
public static final char _psi
public static final char _omega
public static final char _thetasym
public static final char _upsih
public static final char _piv
public static final char _bull
bullet is NOT the same as bullet operator, U+2219
public static final char _hellip
public static final char _prime
public static final char _Prime
public static final char _oline
public static final char _frasl
public static final char _weierp
public static final char _image
public static final char _real
public static final char _trade
public static final char _alefsym
alef symbol is NOT the same as hebrew letter alef, U+05D0 although the same glyph could be used to depict both characters
public static final char _larr
public static final char _uarr
public static final char _rarr
public static final char _darr
public static final char _harr
public static final char _crarr
public static final char _lArr
ISO 10646 does not say that lArr is the same as the 'is implied by' arrow but also does not have any other character for that function. So ? lArr can be used for 'is implied by' as ISOtech suggests
public static final char _uArr
public static final char _rArr
ISO 10646 does not say this is the 'implies' character but does not have another character with this function so ? rArr can be used for 'implies' as ISOtech suggests
public static final char _dArr
public static final char _hArr
public static final char _forall
public static final char _part
public static final char _exist
public static final char _empty
public static final char _nabla
public static final char _isin
public static final char _notin
public static final char _ni
should there be a more memorable name than 'ni'?
public static final char _prod
prod is NOT the same character as U+03A0 'greek capital letter pi' though the same glyph might be used for both
public static final char _sum
sum is NOT the same character as U+03A3 'greek capital letter sigma' though the same glyph might be used for both
public static final char _minus
public static final char _lowast
public static final char _radic
public static final char _prop
public static final char _infin
public static final char _ang
public static final char _and
public static final char _or
public static final char _cap
public static final char _cup
public static final char _int
public static final char _there4
public static final char _sim
tilde operator is NOT the same character as the tilde, U+007E, although the same glyph might be used to represent both
public static final char _cong
public static final char _asymp
public static final char _ne
public static final char _equiv
public static final char _le
public static final char _ge
public static final char _sub
public static final char _sup
note that nsup, 'not a superset of, U+2283' is not covered by the Symbol font encoding and is not included. Should it be, for symmetry? It is in ISOamsn
public static final char _nsub
public static final char _sube
public static final char _supe
public static final char _oplus
public static final char _otimes
public static final char _perp
public static final char _sdot
dot operator is NOT the same character as U+00B7 middle dot
public static final char _lceil
public static final char _rceil
public static final char _lfloor
public static final char _rfloor
public static final char _lang
lang is NOT the same character as U+003C 'less than' or U+2039 'single left-pointing angle quotation mark'
public static final char _rang
rang is NOT the same character as U+003E 'greater than' or U+203A 'single right-pointing angle quotation mark'
public static final char _loz
public static final char _spades
black here seems to mean filled as opposed to hollow
public static final char _clubs
public static final char _hearts
public static final char _diams
public static final char _quot
public static final char _amp
public static final char _lt
public static final char _gt
public static final char _OElig
public static final char _oelig
ligature is a misnomer, this is a separate character in some languages
public static final char _Scaron
public static final char _scaron
public static final char _Yuml
public static final char _circ
public static final char _tilde
public static final char _ensp
public static final char _emsp
public static final char _thinsp
public static final char _zwnj
public static final char _zwj
public static final char _lrm
public static final char _rlm
public static final char _ndash
public static final char _mdash
public static final char _lsquo
public static final char _rsquo
public static final char _sbquo
public static final char _ldquo
public static final char _rdquo
public static final char _bdquo
public static final char _dagger
public static final char _Dagger
public static final char _permil
public static final char _lsaquo
lsaquo is proposed but not yet ISO standardized
public static final char _rsaquo
rsaquo is proposed but not yet ISO standardized
public static final char _euro
public static final char _apos
apos is only defined for use in XHTML (see the XHTML Special Characters Entity Set), but not in HTML.
CharacterReference.ApostropheEncoded
,
Constant Field ValuesMethod Detail |
public java.lang.String getName()
((CharacterEntityReference)CharacterReference.parse(">")).getName()
returns "gt
"
getName(int codePoint)
public static java.lang.String getName(char ch)
Since all character entity references represent Unicode BMP code points,
the functionality of this method is identical to that of getName(int codePoint)
.
CharacterEntityReference.getName('>')
returns "gt
"
null
if none exists.public static java.lang.String getName(int codePoint)
Since all character entity references represent Unicode BMP code points,
the functionality of this method is identical to that of getName(char ch)
.
CharacterEntityReference.getName(62)
returns "gt
"
null
if none exists.public static int getCodePointFromName(java.lang.String name)
If the string does not represent a valid character entity reference name, this method returns INVALID_CODE_POINT
.
Although character entity reference names are case sensitive, and in some cases differ from other entity references only by their case, some browsers will also recognise them in a case-insensitive way. For this reason, all decoding methods in this library will recognise character entity reference names even if they are in the wrong case.
CharacterEntityReference.getCodePointFromName("gt")
returns 62
INVALID_CODE_POINT
if the string does not represent a valid character entity reference name.public java.lang.String getCharacterReferenceString()
Note that the returned string is not necessarily the same as the original source text used to create this object.
This library will recognise certain invalid forms of character references, as detailed in the decode(String encodedString)
method.
To retrieve the original source text, use the toString()
method instead.
CharacterReference.parse(">").getCharacterReferenceString()
returns ">
"
getCharacterReferenceString
in class CharacterReference
CharacterReference.getCharacterReferenceString(int codePoint)
public static java.lang.String getCharacterReferenceString(int codePoint)
If the specified code point does not have an equivalent character entity reference, this method returns null
.
To get either the entity or numeric reference encoded form, use the CharacterReference.getCharacterReferenceString(int codePoint)
method instead.
CharacterEntityReference.getCharacterReferenceString(62)
returns ">
"CharacterEntityReference.getCharacterReferenceString(9786)
returns null
null
if none exists.CharacterReference.getCharacterReferenceString(int codePoint)
public static java.util.Map getNameToCodePointMap()
Map
of character entity reference names (String
) to code points (Integer
).
Map
of character entity reference names to code points.public java.lang.String getDebugInfo()
Segment
getDebugInfo
in class Segment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |