org.springframework.web.util
Class HtmlCharacterEntityDecoder
java.lang.Object
org.springframework.web.util.HtmlCharacterEntityDecoder
class HtmlCharacterEntityDecoder
- extends java.lang.Object
Helper for decoding HTML Strings by replacing character
entity references with the referred character.
- Since:
- 1.2.1
- Author:
- Juergen Hoeller, Martin Kersten
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_REFERENCE_SIZE
private static final int MAX_REFERENCE_SIZE
- See Also:
- Constant Field Values
characterEntityReferences
private final HtmlCharacterEntityReferences characterEntityReferences
originalMessage
private final java.lang.String originalMessage
decodedMessage
private final java.lang.StringBuilder decodedMessage
currentPosition
private int currentPosition
nextPotentialReferencePosition
private int nextPotentialReferencePosition
nextSemicolonPosition
private int nextSemicolonPosition
HtmlCharacterEntityDecoder
public HtmlCharacterEntityDecoder(HtmlCharacterEntityReferences characterEntityReferences,
java.lang.String original)
decode
public java.lang.String decode()
findNextPotentialReference
private void findNextPotentialReference(int startPosition)
copyCharactersTillPotentialReference
private void copyCharactersTillPotentialReference()
processPossibleReference
private void processPossibleReference()
processNumberedReference
private boolean processNumberedReference()
processNamedReference
private boolean processNamedReference()
getReferenceSubstring
private java.lang.String getReferenceSubstring(int referenceOffset)