class HtmlCharacterEntityDecoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private HtmlCharacterEntityReferences |
characterEntityReferences |
private int |
currentPosition |
private java.lang.StringBuilder |
decodedMessage |
private static int |
MAX_REFERENCE_SIZE |
private int |
nextPotentialReferencePosition |
private int |
nextSemicolonPosition |
private java.lang.String |
originalMessage |
Constructor and Description |
---|
HtmlCharacterEntityDecoder(HtmlCharacterEntityReferences characterEntityReferences,
java.lang.String original) |
Modifier and Type | Method and Description |
---|---|
private void |
copyCharactersTillPotentialReference() |
java.lang.String |
decode() |
private void |
findNextPotentialReference(int startPosition) |
private java.lang.String |
getReferenceSubstring(int referenceOffset) |
private boolean |
processNamedReference() |
private boolean |
processNumberedReference() |
private void |
processPossibleReference() |
private static final int MAX_REFERENCE_SIZE
private final HtmlCharacterEntityReferences characterEntityReferences
private final java.lang.String originalMessage
private final java.lang.StringBuilder decodedMessage
private int currentPosition
private int nextPotentialReferencePosition
private int nextSemicolonPosition
public HtmlCharacterEntityDecoder(HtmlCharacterEntityReferences characterEntityReferences, java.lang.String original)
public java.lang.String decode()
private void findNextPotentialReference(int startPosition)
private void copyCharactersTillPotentialReference()
private void processPossibleReference()
private boolean processNumberedReference()
private boolean processNamedReference()
private java.lang.String getReferenceSubstring(int referenceOffset)