|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
org.aspectj.org.eclipse.jdt.internal.formatter.comment.SubstitutionTextReader
org.aspectj.org.eclipse.jdt.internal.formatter.comment.HTMLEntity2JavaReader
public class HTMLEntity2JavaReader
SubstitutionTextReader that will substitute plain text values
for html entities encountered in the original text. Line breaks and
whitespace are preserved.
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
HTMLEntity2JavaReader(java.io.Reader reader)
Creates a new instance that will read from reader |
|
| Method Summary | |
|---|---|
protected java.lang.String |
computeSubstitution(int c)
Implement to compute the substitution for the given character and if necessary subsequent characters. |
protected java.lang.String |
entity2Text(java.lang.String symbol)
Replaces an HTML entity body (without & and ;) with its plain/text (or plain/java) counterpart. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.comment.SubstitutionTextReader |
|---|
close, getReader, getString, isSkippingWhitespace, nextChar, read, read, ready, reset, setSkipWhitespace |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLEntity2JavaReader(java.io.Reader reader)
reader
reader - the source reader| Method Detail |
|---|
protected java.lang.String computeSubstitution(int c)
throws java.io.IOException
SubstitutionTextReadernextChar
to read subsequent characters.
computeSubstitution in class SubstitutionTextReaderjava.io.IOExceptionprotected java.lang.String entity2Text(java.lang.String symbol)
symbol - the entity body to resolve
symbol
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||